This topic is locked

Alias

10/2/2005 3:24:10 PM
PHPRunner General questions
author

I have a MYSQL database that has data for a list management system. The attributes for a contact are all stored in an attribute table. For example, last name, first name etc are all attributes in the same table as different records. So if I want to get a list of the first and last names I need to use an alias. For example
SELECT lname.value, fname.value

From att_file as lname, att_file as fname ...
I attempted to edit the SQL after setting up the tables using the wizard. However, only the first instance was generated in the. Is there a way to have aliases.

Sergey Kornilov admin 10/3/2005

Hi,
all field names must have unique aliases, for example:

SELECT lname.value as field1, fname.value as field2 from att_file as lname, att_file as fname


Notice: you can not edit or add records to two tables on the same page simultaneously.