Use this statement to insert rows into a table
INSERT [ INTO ] table-name [ ( column-name, ... ) ] { VALUES ( expression, ... ) | select-statement }
The INSERT statement can be used to insert a single row, or to insert multiple rows from a query result set.
If columns are specified, values are inserted one for one into the specified columns. If the list of column names is not specified, values are inserted into the table columns in the order in which they appear in the table (the same order as retrieved with SELECT *). Rows are inserted into the table in an arbitrary order.
Character strings inserted into tables are always stored in the same case as they are entered, regardless of whether the database is case sensitive.
The following statement adds an Eastern Sales department to the database.
INSERT INTO Departments ( DepartmentID, DepartmentName ) VALUES ( 230, 'Eastern Sales' ); |
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |