0
동일한 요청을 mySQL Workbench에서 사용할 때 결과 개수는 41100입니다. 내 스크립트에서 개수는 1015입니다. 내 코드에 오류가 없습니다. 그것). 이 차이의 원인은 무엇입니까?Perl dbi : fetchrow_array 제한 결과 :
# Create the statement
# select all id in table contacts
$statement = "select distinct contacts.id from $database.contacts";
# Prepare and execute the SQL query
$sqlQuery = $connectGrc->prepare($statement)
# Execute the statement
$sqlQuery->execute()
# Make id in array
while($oneId = $sqlQuery->fetchrow_array())
{
push(@ArrayId,$oneId);
}
분명히 잘못된 것은 없습니까? 그것은 심지어 컴파일되지 않습니다! 그의 실제 코드가 어떻게 생겼는지 누가 알 겠어. – ikegami