Databases use a series of Tables to store the data. first name last name email Benson Lu llwbenson@g mail.com Cherry Lin cherry@gmail. com #__asukademy_users
For each record, we give a id first name last name email 1 Benson Lu llwbenson @gmail.co m 2 Cherry Lin cherry@g mail.com #__asukademy_users unique id (Primary key)
last name email 1 Benson Lu llwbenson@ gmail.com 2 Cherry Lin cherry@gma il.com #__asukademy_users id city area 3 Taichung South 4 Taipei Xinyi #__asukademy_address
name last name email addres s_id 1 Benso n Lu llwbenso n@gmail. com 4 2 Cherry Lin cherry@g mail.com 3 #__asukademy_users id city area 3 Taichung South 4 Taipei Xinyi #__asukademy_addresses
which record to modified 2. We must know the what columns to update 3. Make connection 4. UPDATE table SET foo=bar …….. WHERE id=? 5. execute query 6. Close Connection