in reply to Interpolating subroutine call in SQL INSERT INTO SELECT statement
I agree with Anonymous Monk that there is nothing wrong with using two SQL statements in this situation. But what is the function of the subroutine to which you want to pass the value of COLUMN3 ? Could you use an existing SQL function in your SELECT query? Or could you build a stored routine for your DB?
Built-in SQL functions
Stored routines in MySQL
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Interpolating subroutine call in SQL INSERT INTO SELECT statement
by shadowsong (Pilgrim) on Aug 26, 2015 at 14:30 UTC |