CSV文件导入SQL
CSV文件内容:
NAME|NRIC|Purse Description|Card Number|Purse Balance
Wang Wang|s1234456B|GRAND DRAW CHANCES|20001|600
Wang Wang|s1234456B|CHANGI REWARDS POINTS|20001|2
Li|e1234567C|GRAND DRAW CHANCES|20002|2400
Li|e1234567C|CHANGI REWARDS POINTS|20002|8
SQL:
修改前
Card_Number Points Chances
20001 300 1
20002 300 1
修改后
Card_Number Points Chances
20001 600 2
20002 2400 8
1.要求:
当Purse Description为GRAND DRAW CHANCES修改Card_Number为20001的Points=600
当Purse Description为CHANGI REWARDS POINTS修改Card_Number为20001的Chances=1 以此类推
2.浏览CSV文件,要求一键导入