SQL tutorial | Interview questions | Oracle
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How To Insert a New Row into a Table?

Go down

How To Insert a New Row into a Table? Empty How To Insert a New Row into a Table?

Post by Micheal Sat Jan 16, 2010 9:34 pm

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

Micheal
Admin

Posts : 243
Join date : 2010-01-10

http://sql-tutorial.co.cc

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum