kalau macam ni nak kena touch-up sikit la aplikasi tu. Nak kena carik pakar db berkaitan dsb.

sekadar pandangan orang tak cukup sekolah.

On 03/14/2011 01:05 PM, Mohd Kamal Bin Mustafa wrote:
2011/3/14 E A Faisal<eafai...@gmail.com>:
Lazy query vs greedy query perhaps. People in FOSS are usually "lazy", hence
make use of lazy query. Vendors are usually "greedy" and hence make use of
greedy query :)
<?php
$result = mysql_query("SELECT student_id FROM students");
while ($row = mysql_fetch_row($result)) {
    $student_details = mysql_query("SELECT * FROM students WHERE
student_id = %d", array($row['student_id']));
     print $student_details ....;
}

postgres pun boleh mati kalau ada query macam ni.


--
To unsubscribe from and detail about this group 
http://portal.mosc.my/osdc-my-mailing-list-information

MOSC2011 http://fb.me/mosc2011

Kirim email ke