helleo all
i want to delete from 5 tables with inner join like that:
Category=CategoryId,CategoryName,..
Item=ItemId,ItemName,pictureId,VideoId,AudioId,CategoryId
Picture=pictureId,pictureName
Video=VideoId,VideoName
Audio=AudioId,AudioName
the user will Enter category name in text box iwant to delete Category+Item+picture+audio+video
help me please :)
Roulaa
0
Newbie Poster
Recommended Answers
Jump to PostIn your database design you should have your Foreign Keys set up to reference each table in the chain.
You can set your Foreign Keys to perform an action when you perform an operation on the database. In your case you want it to delete. This will cascade the …
Jump to PostYou can't pass inner join to delete. You will have to delete each one individually.
So when you goto the table to delete, you need to get the ID's used in the other tables before you delete it and then do the same with the rest of the tables.
…
Jump to PostI'm sorry I don't understand what you want.
Try writing in code what it is you want to do (even if the code doesn't work, using pseudocode may be a good idea)
Jump to PostOk, firstly, please stop writing help help help all the time. It makes me feel pressured. I'm already here, helping you when I can, I also have my own things to do you know ;)
Ok, your code itself looks fine, so I imagine you're getting errors from your …
All 14 Replies
Ketsuekiame
860
Master Poster
Featured Poster
Roulaa
0
Newbie Poster
Ketsuekiame
860
Master Poster
Featured Poster
Roulaa
0
Newbie Poster
Roulaa
0
Newbie Poster
Ketsuekiame
860
Master Poster
Featured Poster
Roulaa
0
Newbie Poster
Ketsuekiame
860
Master Poster
Featured Poster
Roulaa
0
Newbie Poster
Ketsuekiame
860
Master Poster
Featured Poster
Roulaa
0
Newbie Poster
Ketsuekiame
860
Master Poster
Featured Poster
pritesh2010
30
Posting Whiz in Training
Roulaa
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.