[sourcecode language="sql"]update kontak set koordinator = 'saidi11' where koordinator = 'saidi' order by id asc limit 50[/sourcecode]
query di atas akan melakukan update data sebanyak 50 baris, field yang di-update adalah koordinator
[sourcecode language="sql"]select count(id), koordinator from kontak where koordinator like '%saidi%' group by koordinator[/sourcecode]
query di atas akan menampilkan data grouping berdasarkan field koordinator

alhamdulillah
No comments:
Post a Comment