Syntax for setting a default constraint. Start by  creating a new table and adding a default constraint to one of its columns.

create table stu1(s_id int, s_name varchar(20), s_marks int default 50)

Categorized in:

SQL

Tagged in:

, , , , , , , , , , , ,

Share Article:

Leave a Reply

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
100% Free SEO Tools - Tool Kits PRO