MySQL Forums
Forum List  »  Quality Assurance

Query without knowing field name in where clause
Posted by: Shady Massalha
Date: April 15, 2010 02:02AM

Hi,

I have 4 Normalizing tables, In each one Fields names are different.
I wanted to make one PHP function to deal with all table names.

Although I know the field names of each table. I wanted to make this query

"DELETE FROM $normalizingTable WHERE {FIELD-NO-1} = $someId"

My problem is with {FIELD-NO-1} .... how can i tell MySQL that i want to referrence to field no 1 ???

I know that i can solve it in PHP, or by Query Fields names and then use it in my query...

Thanks
M. Shady

Massalha Shady
http://layan.us
http://arab-jokes.net

Options: ReplyQuote


Subject
Views
Written By
Posted
Query without knowing field name in where clause
3496
April 15, 2010 02:02AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.