mysql 설명 좀 해주세요. 정보
mysql 설명 좀 해주세요.본문
$QUERY = "select * from g4_category where c_depth='0' order by c_sort asc";
$RESULT = mysql_query($QUERY);
where 가 무슨뜻인지???
<?
$QUERY2 = "select * from g4_category where c_depth='1' and c_pcode='$LIST[c_code]' order by c_name asc";
$RESULT2 = mysql_query($QUERY2);
?>
<?
while($LIST2 = mysql_fetch_array($RESULT2))
{
?>
<?= $LIST2[c_code]?>
<?=$LIST2[c_name]?>
<?=date("Y-m-d",strtotime($LIST2[c_regday]))?>
<?
}
?>
위의 c_depth='1' and c_pcode='$LIST[c_code]' 은 무슨뜻인가요? c_depth='1' 값과 c_pcode='$LIST[c_code]' 값을 c_name이름으로 정렬하는건가요?
근데 c_pode='$LIST[c_code]' 은 무슨말인지?? 다른거와 다르게 [] 이 있는데 공부 중이니깐 상세히 좀 알려주시면 감사하겠습니다.
제가 위의 소스로 페이지를 만들면 출력이되어야 하는데 오류가 나네요~ 알려주세요 ^^
$RESULT = mysql_query($QUERY);
where 가 무슨뜻인지???
<?
$QUERY2 = "select * from g4_category where c_depth='1' and c_pcode='$LIST[c_code]' order by c_name asc";
$RESULT2 = mysql_query($QUERY2);
?>
<?
while($LIST2 = mysql_fetch_array($RESULT2))
{
?>
<?= $LIST2[c_code]?>
<?=$LIST2[c_name]?>
<?=date("Y-m-d",strtotime($LIST2[c_regday]))?>
<?
}
?>
위의 c_depth='1' and c_pcode='$LIST[c_code]' 은 무슨뜻인가요? c_depth='1' 값과 c_pcode='$LIST[c_code]' 값을 c_name이름으로 정렬하는건가요?
근데 c_pode='$LIST[c_code]' 은 무슨말인지?? 다른거와 다르게 [] 이 있는데 공부 중이니깐 상세히 좀 알려주시면 감사하겠습니다.
제가 위의 소스로 페이지를 만들면 출력이되어야 하는데 오류가 나네요~ 알려주세요 ^^
( select a.* , ( select sum(co_count) as co_count from g4_qa_choose where mb_id=a.mb_id and bo_table = 'g4_qa' ) as q_co_count from `g4_write_g4_qa` a where wr_parent = '248803' and wr_8 != '' and wr_is_comment = 1 and CONVERT(wr_7, UNSIGNED) >= 5 group by wr_content having max(wr_7) order by CONVERT(wr_7, UNSIGNED) desc limit 3 )
1055 : Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sir.a.wr_id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
error file : /15sir/bbs/board.php