2019独角兽企业重金招聘Python工程师标准>>>
使用 select top 5 * from table order by id 时,报用select语句检索oracle数据库时出现ora-00923:未找到要求的from关键字。
因为该SQL语句是在SQLServer中的使用的,如果是在 Oracle中,需要使用 rownm 这个关键字用来返回 查询的记录条数。
eg: select * from table where rownnm<=5 order by id
2019独角兽企业重金招聘Python工程师标准>>>
使用 select top 5 * from table order by id 时,报用select语句检索oracle数据库时出现ora-00923:未找到要求的from关键字。
因为该SQL语句是在SQLServer中的使用的,如果是在 Oracle中,需要使用 rownm 这个关键字用来返回 查询的记录条数。
eg: select * from table where rownnm<=5 order by id
转载于:https://my.oschina.net/u/219582/blog/59489