tags:

views:

29

answers:

2

I'm integrating 1 script as backend for another. Both the scripts uses PHP/Mysql. There is however one catch as in the "Users" table the frontend uses "id" for the user's id & the backend uses "uid".

Is there any way to give two names for the same column so that the modding can be done easily ?

+1  A: 

View can help you

Col. Shrapnel
A: 

Just use an alias:

SELECT
  id,
  id AS uid
FROM
  tablename;
Frank Heikens