Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What's wrong with that? Assuming you escape the table names correctly, that seems reasonable. And if you can't escape the table names, you're going to have a hard time dynamically generating queries anyway. Parameterized queries are a baseline requirement for values, but are rarely supported by client libraries for things like table or schema names.


Nothing wrong with the syntax, it's just that if you're going to create an entire mirror of your database, you might as well use mysqldump. (Plus it'll actually be portable).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: