How To Insert a New Row into a Table?
Page 1 of 1
How To Insert a New Row into a Table?
To insert a new row into a table, you should use the INSERT INTO statement with values
specified for all columns as shown in the following example:
INSERT INTO fyi_links VALUES (101,
'http://dev.fyicenter.com',
NULL,
0,
'30-Apr-2006');
1 row created.
SELECT * FROM fyi_links;
ID URL NOTES COUNTS CREATED
----- ------------------------ ------------ ------- ---------
101 http://dev.fyicenter.com NULL 0 30-Apr-06
specified for all columns as shown in the following example:
INSERT INTO fyi_links VALUES (101,
'http://dev.fyicenter.com',
NULL,
0,
'30-Apr-2006');
1 row created.
SELECT * FROM fyi_links;
ID URL NOTES COUNTS CREATED
----- ------------------------ ------------ ------- ---------
101 http://dev.fyicenter.com NULL 0 30-Apr-06
Similar topics
» How To Create a New Table by Selecting Rows from Another Table?
» How To Create a New Table by Selecting Rows from Another Table?
» Insert command in SQL
» What Privilege Is Needed for a User to Insert Rows to Tables in Another Schema?
» How To Create a New Table?
» How To Create a New Table by Selecting Rows from Another Table?
» Insert command in SQL
» What Privilege Is Needed for a User to Insert Rows to Tables in Another Schema?
» How To Create a New Table?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
Sun Jan 31, 2010 12:35 am by Micheal
» Accessing tables of other users in SQL
Sun Jan 31, 2010 12:34 am by Micheal
» Grouping commands in SQL
Sun Jan 31, 2010 12:32 am by Micheal
» Operations on Result Sets in SQL
Sun Jan 31, 2010 12:31 am by Micheal
» Subqueries in SQL
Sun Jan 31, 2010 12:30 am by Micheal
» Joining Relations in SQL
Sun Jan 31, 2010 12:28 am by Micheal
» Delete comand in SQL
Sun Jan 31, 2010 12:27 am by Micheal
» Update command in SQL
Sun Jan 31, 2010 12:26 am by Micheal
» Insert command in SQL
Sun Jan 31, 2010 12:23 am by Micheal