pulkit Posted November 9, 2005 Posted November 9, 2005 Hi I need a little help in MySQLI wanted to know how to link a patricular column or field of a table in MySQL DB with another column or field of another table in the same DB but different DB name of the same DBThanx in advance
vijay Posted November 9, 2005 Posted November 9, 2005 Hi,My Frnd Then What is the Use of Foriegn Key?Use it and Get your Data From another tableForeign key: Primary Key of one table Thaat is the Foreignn Key in another table as Column with same name Same Value to get dat from another TableSo Use it.If U find Solution of link Then plz tell me alsoBye
pulkit Posted November 9, 2005 Author Posted November 9, 2005 Actually I am a little new to all thisThe purpose for this is that i want to link member username,password ,email fields of a SMF forum with a IPB forumBoth of them are stored in the same DB but but different DB namesI wanted that a member on registering on either one of the forum should get access to the other one alsoI know its a little difficult but if u or anyone can help i would greatly appreciate itSo pls help meThanx in advance
Kcarson Posted November 9, 2005 Posted November 9, 2005 I am not sure I exactly understand your question, but I guess my first question for you is why don't you just create one table/database for the two to access, at least as far as this information is concerned?And I don't know if this works on MySQL or if it will even help answer your question but but you can access/join tables from different databases, in MS SQL you can do it by listing out the full address for the table. For example:select * from database1.dbo.table1where [insert where statements here]
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now