Agar Field Tidak Menerima Input Minus (-) Pada MySQL

Pada Saat kita membuat field dengan tipe integer ..terkadang kita menginnginkan field tersebut tidak bisa di input dengan angka Minus (-) seperti contohnya field Stok pada Sistem Penjualan Barang… Tidak Mungkin Stok -1, -2, -3, dst… Pada Kasus seperti ini anda harus menambahkan atribut UNSIGNED pada saat membuat field tersebut……

 

Singkat Bukan…??? hehehehh

 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>