登录mysqlmysql-urot-p单实例mysql-uroot-p-S/data/3306/mysql.sock多实例MySQL帮助命令helpmysql>helpForinformationaboutMySQLproductsandservices,visit:http://www.mysql.com/Fordeveloperinformation,includingtheMySQLReferenceManual,visit:http://dev.mysql.com/Tob..
分类:
数据库 时间:
2016-11-07 12:33:18
阅读次数:
408
insert插入语句
mysql>createtabletest(idint(4)notnullauto_increment,namechar(20)notnull,primarykey(id));
mysql>insertintotest(id,name)values(1,‘martin‘);
QueryOK,1rowaffected(0.03sec)
mysql>insertintotest(name)values(‘martin‘);#由于id字段是自增的..
分类:
数据库 时间:
2016-08-13 14:23:28
阅读次数:
203
1、创建数据库
mysql>createdatabasemartin;
QueryOK,1rowaffected(0.05sec)
mysql>showcreatedatabasemartin\G;
***************************1.row***************************
Database:martin
CreateDatabase:CREATEDATABASE`martin`/*!40100DEFAULTCHARACTERSETlati..
分类:
数据库 时间:
2016-08-11 23:29:24
阅读次数:
507
8、登录mysql
mysql-urot-p单实例
mysql-uroot-p-S/data/3306/mysql.sock多实例
9、MySQL帮助命令help
mysql>help
ForinformationaboutMySQLproductsandservices,visit:
http://www.mysql.com/
Fordeveloperinformation,includingtheMySQLReferenceManual,visit:
http://..
分类:
数据库 时间:
2016-08-10 08:51:08
阅读次数:
264