sql常用语句

attention;1: 在sql语句中, 不区分字母大小写, SELECT与select的效果一样;

     2:在sql语句中,使用单引号,双引号部分数据库无法识别;

 

    select * from table where id='123';

               update table set a='b'  where id='123'

    delete from table where id='123';

     insert into table values (val1,val2,val3)

    insert into table (col1,col2,col3) values(val1,val2,val3);

posted @ 2019-05-27 20:05  泽泽生龙  阅读(116)  评论(0)    收藏  举报