9 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
mysql> SELECT email,id FROM visitors;
+--------------------------------+----+
| email | id |
+--------------------------------+----+
| [EMAIL=webmaster@creedforever.com]webmaster@creedforever.com[/EMAIL] | 8 |
| [EMAIL=format_c@perl-community.de]format_c@perl-community.de[/EMAIL] | 18 |
| [EMAIL=koeppe@oreg.de]koeppe@oreg.de[/EMAIL] | 9 |
| [EMAIL=spawn2011@aol.com]spawn2011@aol.com[/EMAIL] | 16 |
| [EMAIL=musteradresse@creedforever.com]musteradresse@creedforever.com[/EMAIL] | 13 |
+--------------------------------+----+
5 rows in set (0.00 sec)
mysql>
1
2
3
4
5
6
7
8
9
10
mysql> SELECT sid FROM warenkorb;
+-----------------------+
| sid |
+-----------------------+
| adljasdf956a43sdfadsf |
| 18 |
+-----------------------+
2 rows in set (0.00 sec)
mysql>
1
2
3
4
5
6
7
8
9
10
11
12
13
mysql> DELETE FROM warenkorb
-> WHERE sid
-> IN (
-> SELECT id
-> FROM visitors
-> WHERE email='format_c@perl-community.de'
-> )
->;
ERROR 1064: You have an error in your SQL syntax near 'SELECT id
FROM visitors
WHERE email='format_c@perl-community.de'
)' at line 4
mysql>
DELETE warenkorb FROM visitors, warenkorb WHERE warenkorb.sid=visitors.id
1
2
3
4
5
6
7
8
9
10
11
server:~ # mysql
Welcome to the MySQL monitor. Commands end with; or \g.
Your MySQL connection id is 62 to server version: 3.23.52-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use shop
Database changed
mysql> DELETE warenkorb FROM visitors, warenkorb WHERE warenkorb.sid=visitors.id;
ERROR 1064: You have an error in your SQL syntax near 'warenkorb FROM visitors, warenkorb WHERE warenkorb.sid=visitors.id' at line 1
mysql>
9 Einträge, 1 Seite |