This tutorial shows you how to work with MySQL BLOB data in Python, with examples of updating and reading BLOB data. The authors table has a column named photo whose data type is BLOB. We will read data from a picture file and update to the photo c…
先登录mysql ==>mysql -uroot -p 查看数据库的版本 select version(); 查看有哪些库 show datases; 查看当前处于哪个库 select database(); 查看当前登录用户 select user(); 查看某个库下面的表: use db; show tables; 查看其它库下面的表: show tables from mysql;查看mysql库下有哪些表 查看表的字段: desc dong; show columns from d…
Connector/Net 6.9.8 选择.net/mono即可,不需要安装. 将对应版本的MySql.Data.dll复制到bin目录下即可使用 http://dev.mysql.com/downloads/connector/net/ 但是在使用过程中,用mysql的like语句检索中文时,总是检索不到数据.原来是需要这是字符编码. using MySql.Data.MySqlClient; string query = @"(SELECT * from TB where title LI…