반응형
ssp 심플 클래스에서 UNION ALL을 사용하는 방법?
ssp2 simple class에서 아래 SQL 쿼리를 사용하고 싶습니다.
select * from table1 UNION ALL select * from table2
나는 아래 쿼리를 시도했습니다.ssp::simple class
하지만 작동하지 않습니다.
$table ='';
$joinQuery = ' from table1 UNION ALL table2';
return Ssp::simple($_POST, $this->sql_details, $table, $primaryKey, $columns,
$joinQuery, $filterQuery, null, null, null);
참고: 사용하고 있습니다.Xampp 5.6.24
(MariaDB)
$joinQuery = 'table1 UNION ALL table2' 대신 joinQuery를 바꿉니다;
$joinQuery = ' from (SELECT * from `table1` ';
$joinQuery .= ' UNION ALL';
$joinQuery .= ' SELECT * from `table2` ) temp';
언급URL : https://stackoverflow.com/questions/50366030/how-to-use-union-all-in-ssp-simple-class
반응형
'sourcecode' 카테고리의 다른 글
Oracle 10 및 11에서 Oracle sqlldr이 TNS 항목을 인스턴스 한정자로 받아들이는 것이 가능합니까? (0) | 2023.10.16 |
---|---|
jQuery로 선택 요소를 재설정하는 방법 (0) | 2023.10.16 |
프로세스 리눅스(C 코드)에 대한 열린 파일 설명자 찾기? (0) | 2023.10.16 |
Jquery에서 지연()을 show() 및 hide()와 함께 사용하려면 어떻게 해야 합니까? (0) | 2023.10.16 |
돔 요소에서 추가/제거되는 요소를 탐지하는 방법은 무엇입니까? (0) | 2023.10.16 |