Query a table that has spaces in its name

后端 未结 4 1992
醉酒成梦
醉酒成梦 2020-12-11 04:17

I have a situation, I have a Access table named Gas Flow Rates that I want to add records. When I try to run my insert query for a similar table Common Station<

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-11 04:47

      cmdnon.CommandText = "INSERT INTO '[Common station]' ( S1Flow, S2Flow, S3Flow, S4Flow) VALUES (9999,999, 999, 999)";
        //Once the above line works replace it with cmdnon.CommandText= "INSERT INTO Gas Flow Rates ( S1Flow, S2Flow, S3Flow, S4Flow) VALUES (9999,999, 999, 999)"
    

提交回复
热议问题