| | |
Pulling related data from relational dB re: thread: Problems with a many-to-many inse
Please support our MySQL advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Nov 2008
Posts: 73
Reputation:
Solved Threads: 1
Re: Pulling related data from relational dB re: thread: Problems with a many-to-many inse
0
#61 Nov 25th, 2008
•
•
Join Date: Nov 2008
Posts: 73
Reputation:
Solved Threads: 1
Re: Pulling related data from relational dB re: thread: Problems with a many-to-many inse
0
#62 Nov 25th, 2008
•
•
Join Date: Aug 2008
Posts: 1,162
Reputation:
Solved Threads: 138
Re: Pulling related data from relational dB re: thread: Problems with a many-to-many inse
0
#63 Nov 25th, 2008
well it doesn't make sense as far as the user won't have any services, from the database side it just means there is a user, just no services saved yet
yes users -> uas 1..x
it means a user has been created, but no services have been created
yes users -> uas 1..x
it means a user has been created, but no services have been created
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
•
•
Join Date: Nov 2008
Posts: 73
Reputation:
Solved Threads: 1
Re: Pulling related data from relational dB re: thread: Problems with a many-to-many inse
0
#64 Nov 25th, 2008
•
•
Join Date: Aug 2008
Posts: 1,162
Reputation:
Solved Threads: 138
Re: Pulling related data from relational dB re: thread: Problems with a many-to-many inse
0
#65 Nov 25th, 2008
constraints will do what you are meaning, delete from the user table then it will propagate to other tables that reference that user
lol did i put delete *, just use delete from without the *
lol did i put delete *, just use delete from without the *
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
•
•
Join Date: Nov 2008
Posts: 73
Reputation:
Solved Threads: 1
Re: Pulling related data from relational dB re: thread: Problems with a many-to-many inse
0
#66 Nov 25th, 2008
•
•
Join Date: Aug 2008
Posts: 1,162
Reputation:
Solved Threads: 138
Re: Pulling related data from relational dB re: thread: Problems with a many-to-many inse
0
#67 Nov 25th, 2008
no need to do a check, just run the delete, it won't matter if there is a match or isn't
then just run inserts
then just run inserts
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
•
•
Join Date: Nov 2008
Posts: 73
Reputation:
Solved Threads: 1
Re: Pulling related data from relational dB re: thread: Problems with a many-to-many inse
0
#68 Nov 25th, 2008
•
•
Join Date: Aug 2008
Posts: 1,162
Reputation:
Solved Threads: 138
Re: Pulling related data from relational dB re: thread: Problems with a many-to-many inse
1
#69 Nov 25th, 2008
actually no need to check the uas table at all, just delete, then insert
you are correct, check user table i guess from a login or whatever that is, then no need to check anything against uas table except when displaying the form, on submit delete and insert
also i normally wouldn't suggest this, but i think it is appropriate here, we don't need a uas_id on uas table, it is always being deleted and never referenced, you can keep it, no big deal, its just not of use i see yet, but maybe keep it if you think you will need it later
you are correct, check user table i guess from a login or whatever that is, then no need to check anything against uas table except when displaying the form, on submit delete and insert
also i normally wouldn't suggest this, but i think it is appropriate here, we don't need a uas_id on uas table, it is always being deleted and never referenced, you can keep it, no big deal, its just not of use i see yet, but maybe keep it if you think you will need it later
Custom Application & Software Development
www.houseshark.net
www.houseshark.net
•
•
Join Date: Nov 2008
Posts: 73
Reputation:
Solved Threads: 1
Re: Pulling related data from relational dB re: thread: Problems with a many-to-many inse
0
#70 Nov 25th, 2008
OK ;-)))))))
That's got it!!!!
Now all I have to do is figure out how to disable the services checkboxes until the user clicks on an airport checkbox ... but that is another issue ;-)
You have a night full of beer if you ever get here to Toronto. If you have a book wish list just let me know. You have been a huge help, a patient man and an all around great guy.
Seriously ... thank you very very much for your kind help.
Dave
That's got it!!!!
Now all I have to do is figure out how to disable the services checkboxes until the user clicks on an airport checkbox ... but that is another issue ;-)
You have a night full of beer if you ever get here to Toronto. If you have a book wish list just let me know. You have been a huge help, a patient man and an all around great guy.
Seriously ... thank you very very much for your kind help.
Dave
![]() |
Other Threads in the MySQL Forum
- Previous Thread: Which is better? Tons of separate tables with a little data or one big table?
- Next Thread: update in steps? is it possible ?
Views: 3545 | Replies: 71
| Thread Tools | Search this Thread |
Tag cloud for MySQL
"use" 1 amazon api aws bizspark breathalyzer changingprices cmg communityjournalism contentmanagement contractors copyright count court crm data database design developer development distinct drupal dui ec2 eliminate email enterprise eudora facebook form foss gartner gnu government gpl groklaw groupware hiring hyperic images innerjoins insert ip joebrockmeier journalism keyword keywords kickfire laptop law legal license licensing linux managing mariadb matchingcolumns metron micromanage microsoft microsoftexchange mindtouch montywidenius mozilla multiple mysql mysqlcolumnupdating mysqlindex mysqlinternalqueries mysqlsearch news opendatabasealliance opengovernment opensource operand oracle pdf penelope php priceupdating query referencedesign remove reorderingcolumns resultset search select simpledb sourcecode spotify sql statement sugarcrm syntax techsupport thunderbird transparency update virtualization






