The syntax you are using is not the standard syntax for insert
. I believe it is special syntax for MySQL.
Here is one way to do this:
insert into `products`(name, time, time2)
select 'y', 'x', 'x';
If you are doing this in MySQL and typing this out, you could do something like:
insert into `products`(name, time, time2)
select 'y', val, val
from (select 'x' as val) t;
Of course, in this case, that doesn't save any typing.