on 09-29-2017 3:52 AM
I'm trying to convert a column named "PRICE" in my table from a double to a decimal, and cant seem to do so.
I've tried these few following codes in the sql console but they don't seem to work, any ideas? Thanks in advance!
ALTER TABLE firsttable.products ALTER COLUMN PRICE DECIMAL(10,2);
ALTER TABLE firsttable.products MODIFY COLUMN price DECIMAL(10,2);<br>ALTER TABLE FIRSTTABLE.PRODUCTS ALTER (PRICE DECIMAL(10,2));
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.