sqlserver中的left,right,top改在oracle上怎么写???
例如sqlserver的
select top 1 name from table
select left(id,2) from table
select right(id,2) from table
例如sqlserver的
select top 1 name from table
select left(id,2) from table
select right(id,2) from table
right(c,2) substr(c,-2)
Oracle中不支持Top 语法。使用where rownum < n 代替。但需要注意如果在Top前有排序的操作,则需要先排序在利用rownum取得。
http://www.mikecat.net/blogview.asp?logID=1192