declare @selectCount int,@allCount int,@lostCount int
select @selectCount=count(1) from TB_ITEM where ItemName is not null
select @allCount=count(1) from TB_ITEM
select @lostCount=count(1) from TB_ITEM where ItemName is null
select @selectCount as SelectCount,@AllCount as allCount,@lostCount as LostCountsql这么写没问题,怎么改成Oracle的啊
解决方案 »
- 关于虚拟现实
- Intelligencia.UrlRewriter 时页面其他链接被更改~~
- 如何向一个htm页面添加一个hyperlink?在运行的时候
- asp.net 发布下面这段文章出问题啦!!急
- 如何获取目录下的文件数和文件夹数呢
- 求csdn小助手 公司開網頁不方便 謝謝
- 请教各位大人,我在asp.net下用javascript弹出对框alert('')后页面闪烁一下,回来后字体就变大了,在线等待解答!谢谢啊~~
- 如何消除asp.NET控件中的VALUE值?
- 做系统网站
- 如何手动保存视图状态和手动加载视图状态
- Gridview 的HyperLinkField设置
- 2级联动dropdownlist绑定
select count(1) into @selectCount from TB_ITEM where ItemName is not null
參考
select @selectCount SelectCount,@AllCount allCount,@lostCount LostCount from dual;