![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
sql
文章平均质量分 77
常常出没
这个作者很懒,什么都没留下…
展开
-
TRUNCATE DELETE DROP区别
TRUNCATE TABLE 在功能上与不带 WHERE 子句的 DELETE 语句相同:二者均删除表中的全部行。但 TRUNCATE TABLE 比 DELETE 速度快,且使用的系统和事务日志资源少。 DELETE 语句每次删除一行,并在事务日志中为所删除的每行记录一项。 TRUNCATE TABLE 通过释放存储表数据所用的数据页来删除数据,并且只在事务日志中记录页的释放。 TRUNC转载 2014-12-18 21:56:11 · 258 阅读 · 0 评论 -
SQL的连接语句
--建表table1,table2: create table table1(id int,name varchar(10)) -- 建表语句 create table table2(id int,score int) --建表语句 --插入测试值 insert into table1 select 1,'lee' insert into table1 select 2,'转载 2014-12-18 23:36:19 · 350 阅读 · 0 评论