Discussion
Which keyword is used to rename a field name in SQL query ?
Answer: B
The keyword is AS.
AS gives a column (or table) an alias in the result of a query, for example SELECT name AS employee_name FROM employee; displays the column under the new heading without changing the table.
ALTER changes the structure of a table (and with RENAME COLUMN can rename a column permanently, but that is a schema change, not part of a query). LIKE is for pattern matching in conditions, and FROM names the tables a query reads.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development