插入数据

INSERT INTO customer (
    customer_id,
    store_id,
    first_name,
    last_name,
    email,
    address_id,
    active,
    create_date,
    last_update
VALUES (
    602,
    1,
    'IVAN',
    'SIDOROV',
    'ivan.sidiriv@gmail.com',
    591,
    1,
    '2018-11-07',
    NULL
)


这个例子的效果与上一条 INSERT 完全相同,只是把列名明确写在表名后的括号里。插入时,数据库会把列清单中的每一项与 VALUES 清单中对应的值配对。