![]() |
PostgreSQL into MySQL
Hi there,
I need to convert the following code from PostgreSQL into MySQL Code:
Thanks in advance! |
Re: PostgreSQL into MySQL
From what I can tell MySQL doesn't support Types like PostgreSQL.
However you can use the SET datatype. Have a look at the MySQL manual (http://dev.mysql.com/doc/refman/5.1/en/set.html) for more detail |
Re: PostgreSQL into MySQL
Thanks, but I found an alternative by creating mySQL procedures instead of functions.
Code: CREATE PROCEDURE procedure_name() BEGIN SELECT fiend_id, field_name FROM table_name ORDER BY field_id; END$$ Thanks anyway! |
Re: PostgreSQL into MySQL
...and called it this way:
$sql = 'CALL procedure_name()'; |
| All times are GMT +5.5. The time now is 03:24. |