«mysql» 태그된 질문

4
JDatabase를 사용하여 하위 쿼리를 만드는 방법
에서 http://docs.joomla.org/Selecting_data_using_JDatabase , JDatabase를 사용하여 하위 쿼리를 작성하기위한 문서화 된 방법이 없습니다. https://gist.github.com/gunjanpatel/8663333 은이를 수행하는 한 가지 방법을 보여줍니다 (몇 비트는 생략 됨). $subQuery = $db->getQuery(true); $query = $db->getQuery(true); // Create the base subQuery select statement. $subQuery->select('*') ->from($db->quoteName('#__sub_table')) ->where($db->quoteName('subTest') . ' = ' . $db->quote('1')); // Create the base select …
당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.