The meaning of the SQL statement. how can this problem be solved?

Source: Internet
Author: User
SQL statement meaning DB: query (& quot; SELECTCOUNT (*) FROM & quot ;. DB: table ('vgallerys '). & quot; whereuidIN (meaning of SELECT & nbsp; pre_home_fri SQL statement
DB: query ("select count (*) FROM". DB: table ('vgallerys '). "where uid IN (SELECT

Pre_home_friend.fuid FROM pre_home_friend WHERE uid = '$ discuz_uid') and album = 0 ");
The meaning of this sentence cannot be understood ....... Hope you can help

------ Solution --------------------
Returns the number of records that meet the conditions.
After outputting SQL statements, you will know what the complete content is.

Echo "select count (*) FROM". DB: table ('vgallerys '). "where uid IN (SELECT

Pre_home_friend.fuid FROM pre_home_friend WHERE uid = '$ discuz_uid') and album = 0 ";
------ Solution --------------------
Find the total number of records in the vgallerys table that meet the uid in the range of "pre_home_friend this table uid is equal to $ discuz_uid" and album = 0

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.