blacksaibot
Registered User.
- Local time
- Today, 00:57
- Joined
- Jan 20, 2010
- Messages
- 31
I have an INSERT query like so:
According to the format desired by a client, column5 from table1 needs to have field1 and field2 concatenated and represented as two-digit numbers if they're a one digit (has a leading zero).
Is there a way to achieve this?
Code:
INSERT INTO table1 (column1, column2, column3, column4, column5)
SELECT (field1, field2, field3, field4, field1 & "" && field2)
FROM mastertable
According to the format desired by a client, column5 from table1 needs to have field1 and field2 concatenated and represented as two-digit numbers if they're a one digit (has a leading zero).
Is there a way to achieve this?