mysql - SQL add tablename as field -


I did this before, but I do not remember where I saw it.

Should I name the table as a field in a query?

Say I have a table that the user says, how do I add the table name 'User' as a column?

Like:

  Username Username as Username, Password, ** Table **  

It may appear obvious, but have you considered the following?

Username, password, 'mytable'

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -