-
connect to a database:
connect [database]
-
insert into table_demo(intVal, charVal) values(1,343xx)
会报错
insert into table_demo(intVal, charVal) values(1,343)
会自动转为字符串 -
设置编码格式:
db.setdataencoding("utf8")
connect to a database: connect [database]
insert into table_demo(intVal, charVal) values(1,343xx)
会报错
insert into table_demo(intVal, charVal) values(1,343)
会自动转为字符串
设置编码格式:
db.setdataencoding("utf8")
本文标题:MySql学习笔记
本文链接:https://www.haomeiwen.com/subject/ojiklttx.html
网友评论