Drop Foreign Key without knowing the name of the constraint?

后端 未结 7 1167
遇见更好的自我
遇见更好的自我 2020-12-15 03:59

I have created one table using below command:

create table Table1(
    Id int Not Null 
        Foreign key 
        references Table2(Id)  
        on delet         


        
7条回答
  •  生来不讨喜
    2020-12-15 04:33

    you can put:

    > show create table tablename;

    you will see how was created the table...columns, types...etc. and you could see your constraint name.

提交回复
热议问题