zoukankan      html  css  js  c++  java
  • sql语言积累

                  Persons 表:

    IdLastNameFirstNameAddressCity
    1 Adams John Oxford Street London
    2 Bush George Fifth Avenue New York
    3 Carter Thomas Changan Street Beijing

    一、select

    查:  select 列名 from 表名    select * from 表名 (全搜索)

    模糊搜索: select * from 表名 where city like '%on%'    通配符:%代表任意数量字符   _代表一个字符

    二、insert

    增:  插入行    insert into 表名 values(值1,值2....)

        指定列插入  insert into 表名 (列1,列2...) values(值1,值2....)

    三、update

    改:  update 表名 set 列1 = 值1 where 列2 = 值2  (将列2满足条件的行   列1的值改为值1)

    四、delete

    删:  delete frome 表名 where 列1 = 值1    (删除满足条件的行)

    
    

        

  • 相关阅读:
    hdu4291 A Short problem
    UVA
    HDU
    Be Geeks!
    HDU
    hdu6559 The Tower
    胜利大逃亡(续) + Maze
    Stealing Harry Potter's Precious
    hdu5172 GTY's gay friends
    Log Concave Sequences Gym
  • 原文地址:https://www.cnblogs.com/suanai/p/11983552.html
Copyright © 2011-2022 走看看