mysql语句

阅读 68

2022-02-23

1、查询vacation_year表中user_id = 'WV00000101'的列值

select * from vacation_year where user_id = 'WV00000101'3

2、删除vacation_year表中user_id = 'WV00000125' and id = '837'的列值

delete from vacation_year where user_id = 'WV00000125' and id = '837'

3、更新vacation_year表中user_id = 'WV00000363'中outsend_days ='0字段等于0

UPDATE vacation_year set outsend_days ='0' where user_id = 'WV0000063'

UPDATE vacation_year set outsend_days ='0' where user_id = 'WV00000242'
UPDATE vacation_year set days ='40' where id = '788'

4、


INSERT INTO vacation_year VALUES (0, "1", "WV00000422", '40','0','2022','2022-02-06 23:55:59','2022-02-06 23:55:59',null);

精彩评论(0)

0 0 举报