Query to change data type in MySQL table:
ALTER TABLE TABLENAME MODIFY COLUMNNAME double;
Example using this query:
ALTER TABLE transaction MODIFY receivedamount double;
Here:
TABLENAME = TRANSACTION
COLUMNNAME = RECEIVEDAMOUNT
DATATYPE = DOUBLE
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment