Mysql php select in select örneği

SELECT wp_term_relationships.term_taxonomy_id, wp_term_taxonomy.description as zamancizelgesi, wp_term_taxonomy.parent
FROM wp_term_relationships,wp_term_taxonomy
WHERE wp_term_relationships.term_taxonomy_id = wp_term_taxonomy.term_taxonomy_id and wp_term_taxonomy.parent = 3
veya
mysql_select_db($dbname,$db_con);
$sql = “SELECT object_id,term_taxonomy_id
FROM wp_term_relationships
WHERE wp_term_relationships.term_taxonomy_id
IN ( SELECT term_taxonomy_id FROM wp_term_taxonomy WHERE parent =3 ) order by object_id desc “;

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)