1.mysql update 语句: update user set name = 'xiaoming',age = 18 where uid = 3000; 更新记录时update操作也不需要写table关键字,像insert into一样,不需要写table关键字,直接写表名即可 2.mysql insert 语句: insert into user(uid,age,name,address) values(1000,18,'xiaohong','hunanyiyang')…
来源于:http://www.cnblogs.com/rootq/archive/2009/02/11/1388043.html SQL> select count(*) from t;COUNT(*)----------5442048****************************SQL> alter table t1 nologging;SQL> insert /*+append*/ into t12 select * from t;5442048 rows created.…
一.实践先行,直接上手 1. hive 表及数据准备 建表,并插入初始数据.向表中插入 hive> use test; hive> create table kwang_test (id int, name string); hive,'kwang'); hive,'rzheng'); hive> select * from kwang_test; OK kwang rzheng 2. insert into 操作 insert into 语法: INSERT INTO TABLE ta…