Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I remove the default value from a column in oracle?

Tags:

sql

oracle

A column in a table has a default value of sysdate and I want to change it so it gets no default value, how do I do this?

like image 901
Danny Avatar asked Dec 12 '11 22:12

Danny


People also ask

How do I delete a specific value in a column in Oracle?

In this statement, First, you specify the name of the table from which you want to delete data. Second, you specify which row should be deleted by using the condition in the WHERE clause. If you omit the WHERE clause, the Oracle DELETE statement removes all rows from the table.

What is the default value of column in Oracle?

Oracle Default Value A column can be given a default value using the DEFAULT keyword. The DEFAULT keyword provides a default value to a column when the Oracle INSERT INTO statement does not provide a specific value. The default value can be literal value, an expression, or a SQL Function, such as SYSDATE.

How do I change my default value?

Set a default valueRight-click the control that you want to change, and then click Properties or press F4. Click the All tab in the property sheet, locate the Default Value property, and then enter your default value.


1 Answers

ALTER TABLE YourTable MODIFY YourColumn DEFAULT NULL; 
like image 160
Joe Stefanelli Avatar answered Sep 21 '22 03:09

Joe Stefanelli