mssql笔记

    技术2025-06-22  29

    <>和!=都是不等于

    -----------------------------------------------

    %和_通配符

    []  和[^]

     

    telcod like '13[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'

    ---------------------------------------------------

    and,or,not

    先求not,然后and,最后or

    -----------------------------------------------------

    一次插入多行

    insert into atable(....)  select ......  from btable where ........

     

    insert into students(.....)  

    select ..,..,..    union

    select  ..,..,..   union

    select  ...,...

     

     

    将多行插入新表

     

    select .... into btable from atable

     

    -------------------------------------

     

    like,between,sum,avg,in,

     

     

     

    最新回复(0)