Can I get data types of each column I selected instead of the values, using a select statement?
FOR EXAMPLE:
SELECT a.name, a.surname, b.ordernum FR
I usually create a view and use the DESC command:
DESC
CREATE VIEW tmp_view AS SELECT a.name , a.surname , b.ordernum FROM customer a JOIN orders b ON a.id = b.id
Then, the DESC command will show the type of each field.
DESC tmp_view