如题,我的sql语句可写成"select count(*) as RecNum from mytable where age = 30"
或"select count(*) from mytable where age = 30",现在不知道该如何把结果赋给变量int n;
请教!!!!!!!!!!1我已经试了好几个方法都不行,请指教!!!!!!!!!!
...全文
2377打赏收藏
c#访问Oracle,查询符合条件的记录数如何返回?
如题,我的sql语句可写成"select count(*) as RecNum from mytable where age = 30" 或"select count(*) from mytable where age = 30",现在不知道该如何把结果赋给变量int n; 请教!!!!!!!!!!1我已经试了好几个方法都不行,请指教!!!!!!!!!!