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

Yes, it varies by database whether placeholders can be used for table names.

Personally I find table names sufficiently non-dynamic that an enum of accepted values & string concatenation works. Whenever I've wanted to template user input into table names, I've realised that I should probably refactor my schema or add some views.



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

Search: