会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
One is never too old to learn.
Biu ——
博客园
首页
新随笔
联系
管理
订阅
10 2013 档案
如何实现:判断数据库中某表是否有记录,若为空,则插入一条记录。若不为空则查询某记录
摘要:select count(*) as num1 from tableif num1 = 0insert into ...elseselect * from table....SQL的过程如下:Select top 1 * from tableif @@rowcount>0 --上一次影响条数 insert into Table --插入语句else Select * from Table --查询
阅读全文
posted @
2013-10-10 10:52
po-A
阅读(1274)
评论(0)
推荐(0)
公告
Tushare大数据开放社区-免费提供各类金融数据和区块链数据 , 助力智能投资与创新型投资。
Python, Matlab, R, Web数据抽取学习交流。