Basic Oracle Concepts and Programming Question:
Download Job Interview Questions and Answers PDF
How To Insert a New Row into a Table in Oracle?
Answer:
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 ggl_links VALUES (101,
'http://www.globalguideline.com',
NULL,
0,
'30-Jul-2008');
1 row created.
SELECT * FROM ggl_links;
<pre> ID URL NOTES COUNTS CREATED
----- ------------------------ -------- ------- ---------
101 http://www.globalguideline.com NULL 0 30-Jul-08</pre>
INSERT INTO ggl_links VALUES (101,
'http://www.globalguideline.com',
NULL,
0,
'30-Jul-2008');
1 row created.
SELECT * FROM ggl_links;
<pre> ID URL NOTES COUNTS CREATED
----- ------------------------ -------- ------- ---------
101 http://www.globalguideline.com NULL 0 30-Jul-08</pre>
Download Oracle Database Interview Questions And Answers
PDF
Previous Question | Next Question |
How To Set Up SQL*Plus Output Format in Oracle? | How To Specify Default Values in INSERT Statement using Oracle? |