phpOnline
6 سال پیش توسط phpOnline مطرح شد
1 پاسخ

استفاده از union در elequent

سلام و عرض ادب
دوستان عزیز یه کوئری رو هر کار کردم نتونستم تو سیستم Elequent در بیارم.
لطفا راهنمایی بفرماید.

$query=mysql_query("
                    (select `id`,NULL from `event` where `table`<>'entry' and `entry_id`='$id')
                    union (select `id`,`record_id` from `event` where `table`='entry' and `entry_id`='$id') 
                    union (select `id`,`entry_id` from `event` where `table`='entry' and `record_id`='$id')
                    ");