2 This question already has answers here: Operand Should Contain 1 Column – MySQL NOT IN (3 answers) Closed 7 years ago.
I could find a lot of similar questions but no real solution for my problem.
My SQL query:
UPDATE ADRESSEN SET EMAIL = 0 WHERE ID = (SELECT ID, COUNT(ID) AS COUNTER FROM EIGENSCHAFTEN WHERE Kategorie = "BOUNCE" GROUP BY ID HAVING COUNTER = 1)
The error code I receive is
#1241 - Operand should contain 1 column(s)
If I just use the query in the parentheses it works and the result is
ID | COUNTER 0002159 | 1
Where is my error? Thanks a lot for your help.
Related Posts:
- Cannot add or update a child row: a foreign key constraint fails
- How to make MySQL table primary key auto increment with some prefix
- MySQL error 2006: mysql server has gone away
- sql query with multiple where statements
- Cannot delete or update a parent row: a foreign key constraint fails
- Syntax error due to using a reserved word as a table or column name in MySQL
- MySQL root password change
- Installation of MySQL for Visual Studio 1.2.8 failed
- How do I import an SQL file using the command line in MySQL?
- Authentication plugin ‘caching_sha2_password’ cannot be loaded
- Select from multiple tables without a join?
- SQL Query Where Field DOES NOT Contain $x
- Is there an SQLite equivalent to MySQL’s DESCRIBE [table]?
- Mysql command not found in OS X 10.7
- MySQL – UPDATE query based on SELECT Query
- grabbing first row in a mysql query only
- mysqld_safe Directory ‘/var/run/mysqld’ for UNIX socket file don’t exists
- Order a MySQL table by two columns
- MySQL AS keyword
- Should I use the datetime or timestamp data type in MySQL?
- Access denied; you need (at least one of) the SUPER privilege(s) for this operation
- How do I change the data type for a column in MySQL?
- Generating a random & unique 8 character string using MySQL
- MySQL > Table doesn’t exist. But it does (or it should)
- Unknown Column In Where Clause
- Cannot connect to Database server (mysql workbench)
- mysqld: Can’t change dir to data. Server doesn’t start
- How to solve “Error: MySQL shutdown unexpectedly”?
- Can you do a For Each Row loop using MySQL?
- SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known
- Drop all databases in MySQL
- How to properly create composite primary keys – MYSQL
- Failed to Connect to MySQL at localhost:3306 with user root
- MySQL – count total number of rows in php
- How to get the count of each distinct value in a column?
- Data is not constantly loading from custom wordpress table
- How to run WordPress across 2 VMs for high availability
- Mysqldump add drop table?
- How to disable `SQL_CALC_FOUND_ROWS` [duplicate]
- “#1067 – Invalid default value for ‘post_date'” when trying to reset AI after backup
- SQL query to update post_date (one post = one single date & time)
- #1115 – Unknown character set: ‘utf8mb4’
- WordPress Deadlock Error
- How to do a MySQL dump from production site without using a search and replace script for local development?
- How to bulk edit canonical url’s in SQL?
- Concurrent / simultaneous MySQL connections
- How to check for empty and not a failure
- How many ‘wp_insert_post’ calls can be performed in one shot, in a very long ‘for’ loop?
- Keeping database within limits, please help!
- Best settings for MySQL to speed up site? [closed]
- HTML Entities in Post Title
- Distinction on meta value on pre_get_posts
- Can’t find my wordpress DB in phpmyadmin
- Deprecated: mysql_connect():
- $wpdb select all meta for each post
- Calculate average crossing post categories
- WordPress plugin overloading with tmp tables
- Replacing link URL ending strings via MySQL
- Many slow queries post_type = ‘attachment’;
- SQL command to convert all tags in lowercase?
- Problem with admin login after deployment
- Find out how many times the user has logged in
- Is it possible to create a WordPress table using array and loop?
- Can’t run database query
- How to stop $wpdb from prepending database name
- Match tag names with form titles
- Error missing MySQL extension
- Replace a character in all post titles and slugs
- Getting Error Trying to Create Table
- Best approach for a custom database filling in WP custom post types
- Understanding custom php that reads from WP MYSQL
- Why doesn’t custom mysql query return results? Is syntax correct?
- List users with the most posts in the last 30 days
- Insert two row in wordpress database
- Way to extract wordpress data from folder backup
- SQL statement using placeholder is not returning results
- How to Bulk find and replace MySQL for post image url
- Wpdb query with dynamic table name
- Regular XML-RPC timeouts
- update multiple rows in mysqli table base on two values
- WordPress asks to install, but is already installed?
- How can I verify WordPress nonce from the following code?
- How to write in MySQL more characters in user_nicename
- An SQL query to find orphaned image attachments and their meta
- $wpdb->get_var not returning count
- Custom user query – orderby meta_key (that may not exist)
- How to get Attachments(image) with specific width\height ratio
- What is the cron doing?
- Apache Redirect based on WordPress permissions
- SQL error on restoring database
- MySQL database gives blank page (white screen of death)
- Datatabase error: Commands out of sync
- why is $wpdb->update() causing a DB error from within wp_set_password()
- Global MySQL replacing of text patterns/matches
- WP_Query with LIKE returns strange query
- Initialization of table in database using ‘CREATE … IF NOT EXISTS’
- mysqldump throws: Unknown table ‘COLUMN_STATISTICS’ in information_schema (1109)
- How do I load a sql.gz file to my database? (importing)
- How to find source of these strange SQL queries?
- Batch Replace URLs in WordPress Database