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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?