MySQL:使用 insert set 插入数据


#MySQL 笔记


示例

创建表:

CREATE TABLE test_table (
    c1 varchar(100) not null,
    c2 varchar(100)
) ENGINE = InnoDB CHARACTER SET = utf8mb4;

插入多行:

insert into test_table
set 
    c1 = '你好',
    c2 = '中国'
;

查询数据:

mysql> select * from test_table;
+------+------+
| c1   | c2   |
+------+------+
| 你好 | 中国 |
+------+------+


( 本文完 )