C'ment faire Select ID From aQuery?

Résolu
Fallentree Messages postés 2309 Date d'inscription   Statut Membre Dernière intervention   -  
Fallentree Messages postés 2309 Date d'inscription   Statut Membre Dernière intervention   -
Bonjour,

$sql="SELECT Key,Default,Fields FROM (SHOW COLUMNS FROM user) WHERE Field='ID'"; Marche pas.

Je trouverai mais là juste avec https://books.google.fr/?hl=fr
A voir également:

1 réponse

Fallentree Messages postés 2309 Date d'inscription   Statut Membre Dernière intervention   209
 
$sql="SELECT Column_name,column_key,column_default FROM information_schema.columns WHERE table_schema='Photo' And table_name='user' And column_name='Idclef'";

Sinon il semble que :
Select Column1 From (Select Column1,column2 From Table) Where Column2='One'
Fonctionne.

Je comprend le peu de réponse.
0