Write the syntax to rename a column to existing table ?
please give right answer
Answers
Answered by
6
- sǫʟ ʀᴇɴᴀᴍᴇ ᴄᴏʟᴜᴍɴ sʏɴᴛᴀx
- ᴀʟᴛᴇʀ ᴛᴀʙʟᴇ "ᴛᴀʙʟᴇ_ɴᴀᴍᴇ" ᴄʜᴀɴɢᴇ "ᴄᴏʟᴜᴍɴ 1" "ᴄᴏʟᴜᴍɴ 2" ["ᴅᴀᴛᴀ ᴛʏᴘᴇ"];
- ᴀʟᴛᴇʀ ᴛᴀʙʟᴇ "ᴛᴀʙʟᴇ_ɴᴀᴍᴇ" ʀᴇɴᴀᴍᴇ ᴄᴏʟᴜᴍɴ "ᴄᴏʟᴜᴍɴ 1" ᴛᴏ "ᴄᴏʟᴜᴍɴ 2";
- ᴀʟᴛᴇʀ ᴛᴀʙʟᴇ ᴄᴜsᴛᴏᴍᴇʀ ᴄʜᴀɴɢᴇ ᴀᴅᴅʀᴇss ᴀᴅᴅʀ ᴄʜᴀʀ(50);
- ᴀʟᴛᴇʀ ᴛᴀʙʟᴇ ᴄᴜsᴛᴏᴍᴇʀ ʀᴇɴᴀᴍᴇ ᴄᴏʟᴜᴍɴ ᴀᴅᴅʀᴇss ᴛᴏ ᴀᴅᴅʀ;
__________________
✰ᴍᴀʀᴋ ᴀs ʙʀᴀɪɴʟᴇᴀsᴛ✔︎
Answered by
0
sǫʟ ʀᴇɴᴀᴍᴇ ᴄᴏʟᴜᴍɴ sʏɴᴛᴀx
ᴀʟᴛᴇʀ ᴛᴀʙʟᴇ "ᴛᴀʙʟᴇ_ɴᴀᴍᴇ" ᴄʜᴀɴɢᴇ "ᴄᴏʟᴜᴍɴ 1" "ᴄᴏʟᴜᴍɴ 2" ["ᴅᴀᴛᴀ ᴛʏᴘᴇ"];
ᴀʟᴛᴇʀ ᴛᴀʙʟᴇ "ᴛᴀʙʟᴇ_ɴᴀᴍᴇ" ʀᴇɴᴀᴍᴇ ᴄᴏʟᴜᴍɴ "ᴄᴏʟᴜᴍɴ 1" ᴛᴏ "ᴄᴏʟᴜᴍɴ 2";
ᴀʟᴛᴇʀ ᴛᴀʙʟᴇ ᴄᴜsᴛᴏᴍᴇʀ ᴄʜᴀɴɢᴇ ᴀᴅᴅʀᴇss ᴀᴅᴅʀ ᴄʜᴀʀ(50);
ᴀʟᴛᴇʀ ᴛᴀʙʟᴇ ᴄᴜsᴛᴏᴍᴇʀ ʀᴇɴᴀᴍᴇ ᴄᴏʟᴜᴍɴ ᴀᴅᴅʀᴇss ᴛᴏ ᴀᴅᴅʀ;
__________________
✰ᴍᴀʀᴋ ᴀs ʙʀᴀɪɴʟᴇᴀsᴛ✔︎
Similar questions