Collections:
Specify Default Values in INSERT Statements in Oracle
How To Specify Default Values in INSERT Statement in Oracle?
✍: FYIcenter.com
If a column is defined with a default value in a table, you can use the key word DEFAULT in the INSERT statement to take the default value for that column. The following tutorial exercise gives a good example:
INSERT INTO fyi_links VALUES (102, 'http://dba.fyicenter.com', NULL, 0, DEFAULT); 1 row created. SELECT * FROM fyi_links; ID URL NOTES COUNTS CREATED ----- ------------------------ -------- ------- --------- 101 http://dev.fyicenter.com NULL 0 30-Apr-06 102 http://dba.fyicenter.com NULL 0 07-MAY-06
⇒ Omit Columns in INSERT Statements in Oracle
⇐ Insert a New Row into a Table in Oracle
2020-01-29, 2600🔥, 0💬
Popular Posts:
How To List All Stored Procedures in the Current Database in SQL Server Transact-SQL? If you want to...
Where to find answers to frequently asked questions on INSERT, UPDATE and DELETE Statements in MySQL...
What Are the Differences between DATE and TIMESTAMP in Oracle? The main differences between DATE and...
How To Verify a User name with SQLCMD Tool in SQL Server? The quickest way to verify a user name in ...
How To Connect to a MySQL Server with a Port Number in MySQL? If you want to connect a MySQL server ...