美文网首页
插入数据

插入数据

作者: 蜗牛登塔尖 | 来源:发表于2019-03-08 13:45 被阅读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

相关文章

网友评论

      本文标题:插入数据

      本文链接:https://www.haomeiwen.com/subject/rjglpqtx.html