Quantcast
Channel: Toad for MySQL
Viewing all articles
Browse latest Browse all 1315

Forum Post: RE: Toad for MySQL - field manipulation

$
0
0
These are not Toad for MySQL questions, you should rather find forums that discuss basic SQL syntax. That said, what you're asking isn't clear, so here are a few possibilities: To permanently change a column in a table from float(11, 0) to float(11, 2) you need to alter that table like this ALTER TABLE yourtable MODIFY yourfield float(11, 2); To just convert the value from a column in a query you could use the CAST or ROUND functions in your SELECT statement, they do different things, but may be what you want CAST(yourfield as decimal(11, 0)) ROUND(yourfield, 0) To change the order of the fields, just change the order in your SELECT statements, you could also permanently change the order in the table with ALTER TABLE, but that's probably not what you want.

Viewing all articles
Browse latest Browse all 1315

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>