摘要:
#!/usr/bin/env python # -*- coding:utf-8 -*- import pymysql import time conn = pymysql.connect(host='127.0.0.1', port=3306, user='root', passwd='', db='log') cursor = conn.cursor(cursor=pymysql.cur... 阅读全文
posted @ 2017-02-13 22:40
200ML
阅读(108)
评论(0)
推荐(0)
摘要:
select * from l1 left join s1 on l1.s1_nid = s1.nid left join color on l1.cos = color.nid where s1.pray = 'CEO'; 多对多 阅读全文
posted @ 2017-02-13 19:53
200ML
阅读(537)
评论(0)
推荐(0)
摘要:
create table 表名( 列名 类型 是否可以为空, 列名 类型 是否可以为空 )ENGINE=InnoDB DEFAULT CHARSET=utf8 drop table 表名 delete from 表名 truncate table 表名 添加列:alter table 表名 add 阅读全文
posted @ 2017-02-13 16:55
200ML
阅读(158)
评论(0)
推荐(0)
摘要:
CREATE TABLE `l1` ( `nid` int(11) NOT NULL AUTO_INCREMENT, `user` char(10) NOT NULL, `pwd` char(10) NOT NULL, `s1_nid` int(11) NOT NULL, PRIMARY KEY (`nid`), KEY `l1_s1` (`s1_nid`), CON... 阅读全文
posted @ 2017-02-13 16:43
200ML
阅读(184)
评论(0)
推荐(0)
摘要:
1、增 1 2 3 insert into 表 (列名,列名...) values (值,值,值...) insert into 表 (列名,列名...) values (值,值,值...),(值,值,值...) insert into 表 (列名,列名...) select (列名,列名...) 阅读全文
posted @ 2017-02-13 14:18
200ML
阅读(163)
评论(0)
推荐(0)

浙公网安备 33010602011771号