首页 > 数据库 > Oracle > sql 查询的常用方法
1.查询时给表加一个标识列:
select id = identity(int,1,1),* into #tmp from table
select (select count(*) from 表 where id<=t.id) as id,t.* from 表 t
2.在C#中判断从数据库中查询出来的数据是否为Null
sdr[1].ToString() == string.Empty
[@more@]来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9664444/viewspace-968205/ ,如需转载,请注明出处,否则将追究法律责任。