¦bªí¤¤¼W¥[°O¿ý

«e­¶ ¥Ø¿ý ¤U­¶

»yªk ¨Ò¤l

INSERT ³o«ü¥O¬O¥Î¨Ó¦bªí¤¤¼W¥[¤@­Ó°O¿ý¡C

»yªk Top

INSERT INTO <ªíªº¦WºÙ> [(<­n´¡¤Jªº¦r¬q¦Cªí>)] VALUES (<­È¦Cªí>)

³o»y¥y·|¦b <ªíªº¦WºÙ> ©Ò¥Üªºªíªº³Ì«á¼W¥[¤@­Ó°O¿ý¡A¦b <­È¦Cªí> ¤¤ªº©Ò¦³­È·|¡]¥Ñ³r¸¹¤À¹j¡^³Q¥[¨ì <­n´¡¤Jªº¦r¬q¦Cªí>¡]¥Ñ³r¸¹¤À¹j¡^¹ïÀ³ªº¦r¬q¤¤¡C¯d·N¡J

¨Ò¤l  

°²³] s6a ³o­Óªí¤w¸g³Q«Ø¥ß¡]«ö³oùجݬݫإߦ¹ªíªº»y¥y¡^¡A¥H¤Îªí¤¤¤w¦³¥H¤U°O¿ý¡J

class_num stud_id name email clc ue phy pm cs
1 92114 Chan Wai Man, Raymond s92114@sample.edu.hk 64 55 70 64 59
4 91131 Hung Wai Ming s91131@sample.edu.hk 52 48 55 39 59
¡@
³o­Ó SQL »y¥y¦bªíªº³Ì«á¥[¤W¤@­Ó°O¿ý¡C³oùبèS¦³ <­n´¡¤Jªº¦r¬q¦Cªí>¡A¦]¦¹¦b·s°O¿ý¤¤©Ò¦³¦r¬q¥²¶·¥[¤W­È¡C ¦b <­È¦Cªí> ¤¤©Ò¦³­Èªº¦¸§Ç¥²¶·©Mªíªº¦r¬q¦¸§Ç¤@¼Ë¡C
INSERT INTO s6a
  VALUES (3, '94302', 'Fung Ching Man, Mandy', 'mandyfung@example.com', 72, 50, 42, 59, 60)
°õ¦æ«á¡A¸Óªíªº¤º®e¦p¤U¡J
class_num stud_id name email clc ue phy pm cs
1 92114 Chan Wai Man, Raymond s92114@sample.edu.hk 64 55 70 64 59
4 91131 Hung Wai Ming s91131@sample.edu.hk 52 48 55 39 59
3 94302 Fung Ching Man, Mandy mandyfung@example.com 72 50 42 59 60
¡@
¥Î¹L¥H¤Wªº INSERT »y¥y¥[¤F¤@­Ó°O¿ý¥H«á¡A°õ¦æ¥H¤U»y¥y·|¦bªíªº³Ì«á¦h¥[¤@­Ó°O¿ý¡C³o¤@¦¸¥u·|¦b <­n´¡¤Jªº¦r¬q¦Cªí> ¤¤ªº¦r¬q¤~·|³Q¥[¤W­È¡A¦Ó¨ä¥Lªº¦r¬q·|¬OªÅªº¡C¦b <­n´¡¤Jªº¦r¬q¦Cªí> ¤¤ªº¦r¬qªº¦¸§Ç¤£¥²©Mªí¤¤¦r¬qªº¦r¬q¦¸§Ç¤@¼Ë¡A¦ý¦b <­È¦Cªí> ¤¤­Èªº¦¸§Ç¥²¶·©M <­n´¡¤Jªº¦r¬q¦Cªí> ªº¦¸§Ç¤@¼Ë¡C
INSERT INTO s6a (clc, class_num, cs, name, stud_id)
  VALUES (54, 12, 61, 'Poon Man Yin', '93201')
°õ¦æ«á¡A¸Óªíªº¤º®e¦p¤U¡J
class_num stud_id name email clc ue phy pm cs
1 92114 Chan Wai Man, Raymond s92114@sample.edu.hk 64 55 70 64 59
4 91131 Hung Wai Ming s91131@sample.edu.hk 52 48 55 39 59
3 94302 Fung Ching Man, Mandy mandyfung@example.com 72 50 42 59 60
12 93201 Poon Man Yin ¡@ 54 ¡@ ¡@ ¡@ 61

®Ú¾Ú INSERT »y¥yªº»yªk, ¥H¤W»y¥y¤£¯à¼g¦¨¥H¤Uªº¼Ë¤l¡J
INSERT INTO s6a VALUES (12, '93201', 'Poon Man Yin', , 54, , , , 61)

«e­¶ ¥Ø¿ý ¤U­¶