您好,欢迎来到点滴吧! 手机版
点滴吧www.diandiba.com
记录点点滴滴,尽在点滴吧
  • 文章
  • 文章
  • 特效
  • 素材
  • 景点
您现在的位置:首页 > SQL教程 > 文章正文
SQL常用语句
更新时间:2015/1/4 20:31:03   点击:3355次

查询数据:

select * from table1 where (NodeID = 2550)


删除数据:

deleted table1 where (GeneralID = 13436)


普通类型字段字符替换:

update table1 set field1=replace(field1,'str1','str2')


ntext类型字段字符替换:

update table1 set field1=replace(cast(field1 as varchar(8000)),'str1','str2')


替换某个字段以a字母结尾的记录中的a字母:

update table1 set Title=replace(Title,'a','') where (title like '%a')


相关文章
导航分类
热门文章
关于我们| 联系我们| 免责声明| 网站地图|
CopyRight 2012-2015 www.diandiba.com - 点滴吧 All Rights Reserved
滇ICP备09005765号-2