A SQL sentence burns the brain logic problem-ask the boss for guidance

as shown in the figure: the fields

that reply_article is " 69 " and reply_type is " 0 " and reply_aims_user is null are required.

then! Here"s the point. Use the reply_id in the previous query field as the primary key to associate the field reply_parent in the table

.
Mar.06,2021

from your sample data, if reply_type is 0 and reply_parent is null, I'm afraid there will be no result if you query according to the conditions in your column.


where is the brain burning? Just connect!

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-1e88dee-46ce3.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-1e88dee-46ce3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?