Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
此语句用于将行插入表中。
INSERT [ INTO ] table-name [ ( column-name, ... ) ] { VALUES ( expression, ... ) | select-statement }
INSERT 语句可用于插入单行或从查询结果集插入多行。
如果指定了列,则值将逐个插入到指定的列中。如果未指定列名的列表,则值将以它们出现在表中的顺序(与用 SELECT * 检索的顺序相同)插入到表的列中。行以任意顺序插入到表中。
插入到表中的字符串始终以它们输入时采用的大小写进行保存,而不论数据库是否区分大小写。
以下语句将 Eastern Sales 部门添加到数据库。
INSERT INTO Departments ( DepartmentID, DepartmentName ) VALUES ( 230, 'Eastern Sales' );