亚洲精品成人一区二区aⅴ-亚洲精品成人一区二区www-亚洲精品成人在线-亚洲精品第一国产综合野-国产日韩久久久精品影院首页-国产日韩久久久久69影院

mysql的查詢語句

發表日期:2021-07-26 文章編輯:洛壹網絡 文章來源:網站建設公司

mysql的查詢語句

查所有
select * from t5;
查一條數據
select *from t5 where id=9;
查符合條件數據對應列的數據
select username from user where id=4;
給字段取別名
select username user form user;
select username as user from user;
-- distinct去除重復值 ,增加多個的時候,必須兩個同時不重覆才去除顯示
select distinct username,password form user;
查詢空值 null
select * from t1 where username is null;
select * from t1 where username is not null;
like的使用方法   用來做搜索
like(包含)%PHP%  包含php
select * from art where content like '%PHP%';

您的瀏覽器版本太低

請升級您的瀏覽器: Internet Explorer11 或以下瀏覽器: Firefox  /  Chrome  /  360極速瀏覽器