मराठी

Using the sports database containing two relations (TEAM, MATCH_DETAILS) and write the Query for the following: Change the name of the relation TEAM to T_DATA. Also, change the attributes -

Advertisements
Advertisements

प्रश्न

Using the sports database containing two relations (TEAM, MATCH_DETAILS) and write the Query for the following:

Change the name of the relation TEAM to T_DATA. Also, change the attributes TeamID and TeamName to T_ID and T_NAME respectively.

टीपा लिहा

उत्तर

ALTER TABLE TEAM

RENAME TO T DATA:

ALTER TABLE T_DATA

RENAME COLUMN TeamID TO T_ID;

ALTER TABLE T_DATA

RENAME COLUMN TeamName TO T_NAME;

shaalaa.com
Data Types and Constraints in MySQL
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×