Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 » SQL Anywhere Server - SQL Usage » Querying and Modifying Data » Adding, changing, and deleting data » Adding data using INSERT

 

Inserting values into all columns of a row

The following INSERT statement adds a new row to the Departments table, giving a value for every column in the row:

INSERT INTO Departments
VALUES ( 702, 'Eastern Sales', 902 );
Notes
  • Type the values in the same order as the column names in the original CREATE TABLE statement, that is, first the ID number, then the name, then the department head ID.

  • Surround the values by parentheses.

  • Enclose all character data in single quotes.

  • Use a separate insert statement for each row you add.