JAVA-MySQL你不得不用到的一些關鍵字之select

            其實JDBC-mysql不是想象中的那麼難----------------------只要你用心去發現,天下無難事,只怕細心人!

    

            當你想查詢數據庫裏面的信息時,你首先想到的肯定是Select,沒的說,他確實好用,也很好使,select * from table(全部)或者select name from table(部分),也可以這樣用select * from table where id='id'或者select * from table where name in('name1','name2','name3'),抑或嵌套查詢select name from table1 where not exists(select * from table2 where not existst(select * from table3 where id=table.is and sex=table2.sex)) 

           此外還有合併查詢

發佈了28 篇原創文章 · 獲贊 20 · 訪問量 5萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章