插入数据

2019-03-08  本文已影响0人  蜗牛登塔尖

给表中插入数据使用  INSERT INTO 语句

1.给表 customers 插入第一条数据:

INSERT INTO customers(cust_id,

cust_name,

cust_address,

cust_city,

cust_state,

cust_zip,

cust_country,

cust_contact,

cust_email)

VALUES (10001,

'Coyote Inc.',

'200 Maple Lane',

'Detroit',

'MI',

'44444',

'USA',

'Y Lee',

'ylee@coyote.com');

插入数据 检索已经有一条数据

INSERT INTO 语句不返回输出!

列名与内容一一对应!

customers表得其他数据用同样的方法插入,表的内容如下:

customers
上一篇 下一篇

猜你喜欢

热点阅读