473,378 Members | 1,387 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Multi table delete problem

Hello!

SELECT * FROM reviews AS r, reviews_description AS rd WHERE r.reviews_id =
rd.reviews_id AND r.products_id= 108;
works,

DELETE FROM reviews AS r, reviews_description AS rd WHERE r.reviews_id =
rd.reviews_id AND r.products_id= 108;

doesn't work.

why??

please help. thx!
Jul 19 '05 #1
2 2083
Because mysql doesn't support multi linked tables in delete statements.

Kinda pisses you off hey ?

Thanks

Aaron

"Soldier" <di**@DELME.rules.pl> wrote in message
news:br**********@inews.gazeta.pl...
Hello!

SELECT * FROM reviews AS r, reviews_description AS rd WHERE r.reviews_id =
rd.reviews_id AND r.products_id= 108;
works,

DELETE FROM reviews AS r, reviews_description AS rd WHERE r.reviews_id =
rd.reviews_id AND r.products_id= 108;

doesn't work.

why??

please help. thx!

Jul 19 '05 #2
Because mysql doesn't support multi linked tables in delete statements.

Kinda pisses you off hey ?

Thanks

Aaron

"Soldier" <di**@DELME.rules.pl> wrote in message
news:br**********@inews.gazeta.pl...
Hello!

SELECT * FROM reviews AS r, reviews_description AS rd WHERE r.reviews_id =
rd.reviews_id AND r.products_id= 108;
works,

DELETE FROM reviews AS r, reviews_description AS rd WHERE r.reviews_id =
rd.reviews_id AND r.products_id= 108;

doesn't work.

why??

please help. thx!

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Gordon | last post by:
I have 2 tables t and t1. In this case, t1 is a copy of t. I want to delete rows from t1 based on criteria on the t table and a relationship between t ad t1 (in this case the id column). In the...
0
by: Vic | last post by:
Hi all, When I test the Delete multi table function in MySQL, DELETE table_name ...] FROM table-references I accidentally delete all data in one table. All data in that table are gone...
2
by: ip4ram | last post by:
I used to work with C and have a set of libraries which allocate multi-dimensional arrays(2 and 3) with single malloc call. data_type **myarray =...
2
by: Eric Haskins | last post by:
Ok I upgraded to 4.1.12 Max so I could start using InnoDb and be able to do multiple table deletes among others. I have an app system that I need to delete info from a few tables when we delete...
9
by: cheryl | last post by:
I am relatively new to programming in Access for a multi user environment, and am having trouble figuring out if there is a way to accomplish one of our user requests. I am working on a multi...
4
by: Andy_Khosravi | last post by:
I'm trying to build a search utility for users to find 'inquiries' in my database that involves several tables. This is normally easy to do with the query builder, but I have a unique situation...
1
by: gomzi | last post by:
hi, When i try to delete rows in a table by checking the values in an other table, then i receive this error:- "unknown table 'userid' in multi delete" Here's the query...
2
by: =?Utf-8?B?TU1TSkVE?= | last post by:
How to let user delete multi rows from the BindingSource I have in my program datagridview bound it to sql table Throw Bindingsource To fill it: MyTableTableAdaptor.fill(MyDataset.Mytable); ...
12
by: micarl | last post by:
How would i print a report based on criteria selected from several Combo Boxes as well as multiple Multi Select List Boxes, that are located on the same form? I can get one Multi List Box, just...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.