i dont have code yet ! i want just to know: if I have two tables A and B, A's primary key is B's foreign key, how i can which column of B is foreign key and which table this key point to (in this case,this key points to A,but generally, I must find A )
is there somme function like mysql_field_flags in PHP ? (which returns type/options of column)
thx bro
Did you even bother to read my reply? And if you did, did you take the pains to look up DatabaseMetaData http://java.sun.com/j2se/1.4.2/docs/api/java/sql/DatabaseMetaData.html? I don't think so or you would have found getImportedKeys().
No one's going to hand you your code on a plate, and no one's gonna help you if you can't make an effort yourself.
Did you even bother to read my reply? And if you did, did you take the pains to look up DatabaseMetaData http://java.sun.com/j2se/1.4.2/docs/api/java/sql/DatabaseMetaData.html? I don't think so or you would have found getImportedKeys().
No one's going to hand you your code on a plate, and no one's gonna help you if you can't make an effort yourself.
- Afficher le texte des messages
thax for your help, but i dont know why u said so rude?my previous reply was not for you but DrClap who recommened "Have you considered asking the person who designed that database? " so on thax anyway , i followed your intructions already.
> someone can tell me how to detect a foreign key in a
> table (mysql) and know which table this key point to
as said, database metadata is the place to start.
> ? i'am new with jstl
no problem, this isn't something you should do in a JSP anyway.
> it's very urgent,pl,
>
no it's not. We don't even use mySQL, we use Oracle.
okie, i didnot get it all, but thanks you all guy .
"no it's not. We don't even use mySQL, we use Oracle."
if you dont use,and then what do you want me to do ?Oracle is good but not anytime
PS: why this forum did not take quote on clicking "reply" ?
Message was edited by:
miagistevn
Message was edited by:
miagistevn