• 1 
瀏覽模式: 普通 | 列表
續: http://ssorc.tw/rewrite.php/read-999.html

my $sql = "UPDATE table_name SET value = 123 WHERE id = 1 AND name = 'cross'";

上面看來語法並沒有什麼異樣

但存取 access 的話需要

my $sql = "UPDATE [table_name] SET value = 123 WHERE id = 1 AND name = 'cross'";

沒錯,不一樣的地方是要在 tables_name 加上 [] 中括號才行啊
標籤: perl access db update

  • 1