글쓰기 sql query 에 별칭 as 추가 #309
This commit is contained in:
@ -259,7 +259,7 @@ if ($w == '' || $w == 'r') {
|
||||
}
|
||||
|
||||
$sql = " insert into $write_table
|
||||
set wr_num = " . ($w == 'r' ? "'$wr_num'" : "(SELECT IFNULL(MIN(wr_num) - 1, -1) FROM $write_table sq) ") . ",
|
||||
set wr_num = " . ($w == 'r' ? "'$wr_num'" : "(SELECT IFNULL(MIN(wr_num) - 1, -1) FROM $write_table as sq) ") . ",
|
||||
wr_reply = '$wr_reply',
|
||||
wr_comment = 0,
|
||||
ca_name = '$ca_name',
|
||||
|
||||
Reference in New Issue
Block a user