Jump to content

select vice versa


asmith

Recommended Posts

select field_name from table_name where id="3";

 

 

this code show the value for filed_name  ,

 

how can i have backward ?

i mean if i have a value, i want to search this value belongs to what column ?

what is the column name where id=3 and its value is "aaa" .

Link to comment
Share on other sites

if a table has 20 fields, with 20 rows,  how do you find out a value is stored in table or not ?

 

 

        field 1 filed 2 filed 3 filed 4 filed 5 .... filed 20

row1

row2

row3                                      abc

row4

row5

row6

.

.

.

row20

how do you search whether abc is recorded in this table or not ? and find its exact position ?

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.