I'm working on a mini Project for my portfolio. Which is done except there is one column name size which contain integer space and alphabets. For example
size
3 ABC
4 XYZ
19 pqr
I want to update this table by removing the alphabet, So that it looks like this
size
3
4
19
I have tried different methods, which basically gives me syntax error.
alter table bengaluru_house_prices
modify column size substring_index(size, ' ' , 1);
alter table bengaluru_house_prices
modify column size integer;
Thank you