M
M
Mikha Pankratov2015-12-14 14:21:59
MySQL
Mikha Pankratov, 2015-12-14 14:21:59

How to make a select from 2 fields?

Good afternoon,
how to make a select through "-" display 2 fields
For example, I need a
table times
select select from'-'to as time from times where type_id=1;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikha Pankratov, 2015-12-14
@frmax

CONCAT( from, '-', to )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question