Why is select in (select) querying a

mysql select * from table in (select id from table)

Mar.15,2021

select * from TBL where field in (select statement result set)


query statement is incomplete, Only the last half of the execution


select id from table returns a string
SQL is equivalent to
mysql select * from table in ("a br c")
expects:
mysql select * from table in ("a", "b", "c")
so the query will have a problem

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a873-2c226.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a873-2c226.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?