SQL學習筆記

1.排序排序

SELECT  a.*  FROM  table1 a  ORDER BY  fiedle1,fiedle2 [desc]table

eg: SELECT a.* FROM goods_basic a ORDER BY a.IS_SUPPORT_7RETURN, a.ADD_TIME DESC;select

2.高級查詢運算符查詢

insert into users(userid,username,userpss) select  * from userstab

相關文章
相關標籤/搜索