All Commands
All Commands
Show databases;
3. Use ajb;
9. To add new column at the end -→ Alter table T1 add Grade Char(2);
11.To modify existing column or to change the data type → Alter table
T1 modify Name char(30);
12. To modify the data type of an existing column and shift it to a
specific location→
13. To modify the data type of an existing column and shift it to first
position -→
27. To find a match for any string of any length :→ select *from TT
where Name like ‘D%’;
Or
28. To find a match for any single character :→ select *from TT where
Name like ‘C______’;