• 对表中数据的操作


    --向表中添加数据
    insert into Table_1(电话,成绩) values(2000101,12)
    --修改表中的数据
    update Table_1 set 电话=12138 where 电话=2000101
    --删除表中的数据
    delete from Table_1 where 电话=12138
    --删除表中所有数据
    truncate table Table_1
    --查询语句
    select select_list  from table_list  where search_conditions
    group by group_by_list
    having search_conditions 
    order by order_list 
    --选择所有列
    select*from Table_1
    --特定列
    select xh,xm from Table_1
    --top子句
    select top 2* from Table_1 -- 查询stu里前2行数据
    
    限制返回到结果集中的行数
    --使用表别名
    --表名 as 表别名
    --where 子句(查询条件查询内容的属性)
  • 相关阅读:
    mysql安装及初始密码问题
    centos7上安装erlang22.1
    共享文件夹设置
    putty免密登录
    重新开始
    单任务多线程 安全
    线程池
    多线程
    commons-IO
    打印流
  • 原文地址:https://www.cnblogs.com/liuyudong0825/p/4743503.html
Copyright © 2020-2023  润新知