2014年11月24日
摘要: 1.没表的情况下select * into log_books from LOG_BOOK; 新建一个log_books并把LOG_BOOK拷贝到 log_books中。2.有表的情况下 insert intolog_books select * from LOG_BOOK; 把LOG_BOOK数据... 阅读全文
posted @ 2014-11-24 21:50 明天521 阅读(147) 评论(0) 推荐(0) 编辑
摘要: group by 和 having 一般都与聚合函数使用,例如:sum count 等等为什么呢,举个例子表1a b1 s1 d1fselect a,b from 表1 group by a 在不报错的情况下返回什么样的呢a b s1d f会出现一对多的情况 。如果,group by 与 聚合函数用... 阅读全文
posted @ 2014-11-24 18:55 明天521 阅读(614) 评论(0) 推荐(0) 编辑