zoukankan      html  css  js  c++  java
  • SQL语句分享[不定期更新]

    查询临时表

    if object_id('')>0

    查询表中的数据

    select 'insert into ta1(col1,col2,col3) values('''+ltrim(列1)+''',''''+ltrim(列2)+''','''+ltrim(列3)+''')' from ta2

    text 类型的用ltrim(cast([Content] as nvarchar(max)))

     删除重复的数据

    delete t_news where   id   not   in( select min(id) from t_news  group by title)  

    待更新

  • 相关阅读:
    文件操作
    安全名词
    浏览器并发连接
    acm 2057
    acm 2072
    acm 2084
    acm 2044
    acm 2043
    acm 2032
    acm 2005
  • 原文地址:https://www.cnblogs.com/hjwtech/p/4212972.html
Copyright © 2011-2022 走看看