Daya, Thursday, December 05, 2002, 4:14:02 PM, you wrote: DKD> can anybody tell me how can i select,update, delete the records from two DKD> table having same structure in the mysql.
DKD> For ex DKD> MainTable DKD> ------------------- DKD> id(int)| val (varchar) DKD> ------------------- DKD> 1 a DKD> 2 b DKD> 3 c DKD> ------------------- DKD> Duplicate Table DKD> ------------------- DKD> id (int) | val (varchar) DKD> ------------------- DKD> 1 d DKD> 5 e DKD> 6 f DKD> ------------------- DKD> I want result for id 1 like this DKD> ------------------- DKD> id (int) | val (varchar) DKD> ------------------- DKD> 1 a DKD> 1 d DKD> ------------------- Since v4.0 you can easy do it using UNION: http://www.mysql.com/doc/en/UNION.html In 3.23. you can do it using TEMPORARY tables. -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Victoria Reznichenko / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php