首页 > 数据库技术 > 详细

mysql

时间:2020-04-15 18:23:49      阅读:52      评论:0      收藏:0      [点我收藏+]

create table sub(
id int comment ‘编号‘,
email varchar(60) COMMENT ‘订购的邮箱地址‘,
status int comment ‘是否确认,0未确认,1已确认‘,
code varchar(10) comment ‘邮箱确认的验证码‘
)DEFAULT charset=utf8;

 

INSERT into sub VALUES(1,‘123@126.com‘,1,‘trbxpo‘),
(2,‘456@126.com‘,1,‘loicpe‘),
(3,‘789@126.com‘,0,‘jixdami‘),
(4,‘100@126.com‘,0,‘qwwwrty‘);

 

 

select * from sub where status=1;

 

update sub set status =1 where id=3;

 

DELETE from sub where id=2;

mysql

原文:https://www.cnblogs.com/fanqiusha1988/p/12706708.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!