摘要:
Oracle 9i数据库,执行下面语句出现错误“ORA-01791: 不是 SELECTed 表达式”:select distinct t.name from auth_employee t order by t.auth_employee_id asc 原来:SELECT语句中含有DISTINCT 阅读全文
posted @ 2016-08-24 17:18
海子呢
阅读(3033)
评论(0)
推荐(0)
摘要:
select distinct ID,AA,BB from tName与select distinct ID from tName有什么区别??第一种情况,distinct会不会影响AA,或者BB字段?? 有区别,前面的会选择唯一的一行。后面的选择唯一列。前一种只要三个字段都不重复就取出来。后面只取 阅读全文
posted @ 2016-08-24 15:10
海子呢
阅读(75737)
评论(2)
推荐(2)
摘要:
是写SQL语句的时候用来换行的。 阅读全文
posted @ 2016-08-24 09:03
海子呢
阅读(190)
评论(0)
推荐(0)
浙公网安备 33010602011771号