How to add a primary key to a table that is not having any primary key?How to display the Date of birth from a table in the dd-mm-yyyy format?

Questions by BagavathiSupriya

Showing Answers 1 - 1 of 1 Answers


ALTER TABLE table_name
ADD CONSTRAINT table_column_pk PRIMARY KEY (column_name);


It is a table level primary key constraint applied on an existing table.


SELECT TO_CHAR(DOB, 'DD-MM-YYYY')

   FROM table_name;

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions