时间:2021-07-01 10:21:17 帮助过:25人阅读
简单记录insert命令的使用
INSERT INTO student(NAME, salary, created_at) VALUES(‘xing‘, 900, CURDATE());
INSERT INTO student VALUES(1, ‘xing‘, 900, CURDATE());
INSERT INTO GoodsUrl (
id,
url,
created_at,
updated_at
) SELECT
Goods.id AS id,
CONCAT_WS(
‘/‘,
Domains.`name`,
Goods.sitedir
) AS url,
Goods.created_at AS created_at,
Goods.updated_at AS updated_at
FROM
Goods,
Domains
WHERE
Goods.domain_id = Domains.id
AND Goods.is_domain = 0
CREATE TABLE student3 (
SELECT
NAME,
salary
FROM
student
);
mysql之insert
标签:code mysql table new rda 简单 mysq where HERE