久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<legend id='vebAM'><style id='vebAM'><dir id='vebAM'><q id='vebAM'></q></dir></style></legend>
  • <small id='vebAM'></small><noframes id='vebAM'>

      • <bdo id='vebAM'></bdo><ul id='vebAM'></ul>

        <tfoot id='vebAM'></tfoot>
        <i id='vebAM'><tr id='vebAM'><dt id='vebAM'><q id='vebAM'><span id='vebAM'><b id='vebAM'><form id='vebAM'><ins id='vebAM'></ins><ul id='vebAM'></ul><sub id='vebAM'></sub></form><legend id='vebAM'></legend><bdo id='vebAM'><pre id='vebAM'><center id='vebAM'></center></pre></bdo></b><th id='vebAM'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='vebAM'><tfoot id='vebAM'></tfoot><dl id='vebAM'><fieldset id='vebAM'></fieldset></dl></div>
      1. INSERT INTO 語句的問題

        Trouble with INSERT INTO statement(INSERT INTO 語句的問題)
          <bdo id='cywAn'></bdo><ul id='cywAn'></ul>
              1. <tfoot id='cywAn'></tfoot>

              2. <small id='cywAn'></small><noframes id='cywAn'>

              3. <i id='cywAn'><tr id='cywAn'><dt id='cywAn'><q id='cywAn'><span id='cywAn'><b id='cywAn'><form id='cywAn'><ins id='cywAn'></ins><ul id='cywAn'></ul><sub id='cywAn'></sub></form><legend id='cywAn'></legend><bdo id='cywAn'><pre id='cywAn'><center id='cywAn'></center></pre></bdo></b><th id='cywAn'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='cywAn'><tfoot id='cywAn'></tfoot><dl id='cywAn'><fieldset id='cywAn'></fieldset></dl></div>
              4. <legend id='cywAn'><style id='cywAn'><dir id='cywAn'><q id='cywAn'></q></dir></style></legend>
                  <tbody id='cywAn'></tbody>

                  本文介紹了INSERT INTO 語句的問題的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我似乎無法弄清楚為什么我不斷收到 INSERT INTO 語句中的語法錯誤.

                  I can't seem to figure out why I keep getting a Syntax error in INSERT INTO statement.

                  代碼如下.

                  static void ABSChangeEventsTable(string ControlNumber, string CurrentStatus)
                  {
                     using (var connection = new OleDbConnection(strAccessConnAbstracting))
                     using (var command = connection.CreateCommand())
                     {
                        connection.Open();               
                  
                        command.CommandText = "INSERT INTO Events (Date_Time, Details, Regarding, User, Control_Number) VALUES (@Date_Time, @Details, @Regarding, @User, @Control_Number)";
                  
                        command.Parameters.AddWithValue("@Date_Time", DateTime.Now);
                        command.Parameters.AddWithValue("@Details", "OLD:"+CurrentStatus+" NEW: Received Fax");
                        command.Parameters.AddWithValue("@Regarding", "Status Changed");
                        command.Parameters.AddWithValue("@User", "System");
                        command.Parameters.AddWithValue("@Control_Number", ControlNumber);
                  
                        try
                        {
                           command.ExecuteNonQuery();
                        }
                        catch (System.Exception ex)
                        {                   
                           throw;
                        }
                     }            
                  }
                  

                  推薦答案

                  User是保留關鍵字,需要用方括號括起來:

                  User is a reserved keyword, you need to wrap it in square brackets:

                  INSERT INTO Events (Date_Time, Details, Regarding, [User], Control_Number) VALUES (@Date_Time, @Details, @Regarding, @User, @Control_Number)
                  

                  我建議重命名該列以避免每次引用時都需要方括號.

                  I'd recommend renaming that column to avoid the need for square brackets every time you reference it.

                  這篇關于INSERT INTO 語句的問題的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  What are good algorithms for vehicle license plate detection?(車牌檢測有哪些好的算法?)
                  onClick event for Image in Unity(Unity中圖像的onClick事件)
                  Running Total C#(運行總 C#)
                  Deleting a directory when clicked on a hyperlink with JAvascript.ASP.NET C#(單擊帶有 JAvascript.ASP.NET C# 的超鏈接時刪除目錄)
                  asp.net listview highlight row on click(asp.net listview 在單擊時突出顯示行)
                  Calling A Button OnClick from a function(從函數調用按鈕 OnClick)

                    <bdo id='foS2B'></bdo><ul id='foS2B'></ul>
                    <legend id='foS2B'><style id='foS2B'><dir id='foS2B'><q id='foS2B'></q></dir></style></legend>
                    <i id='foS2B'><tr id='foS2B'><dt id='foS2B'><q id='foS2B'><span id='foS2B'><b id='foS2B'><form id='foS2B'><ins id='foS2B'></ins><ul id='foS2B'></ul><sub id='foS2B'></sub></form><legend id='foS2B'></legend><bdo id='foS2B'><pre id='foS2B'><center id='foS2B'></center></pre></bdo></b><th id='foS2B'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='foS2B'><tfoot id='foS2B'></tfoot><dl id='foS2B'><fieldset id='foS2B'></fieldset></dl></div>

                          <tbody id='foS2B'></tbody>
                        <tfoot id='foS2B'></tfoot>

                            <small id='foS2B'></small><noframes id='foS2B'>

                          1. 主站蜘蛛池模板: 欧美a级成人淫片免费看 | 午夜精品久久久久久久久久久久 | 欧美日韩电影在线 | 欧州一区二区 | 婷婷丁香激情 | 免费在线观看一级毛片 | 黄色成人在线观看 | 91精品国产91久久综合桃花 | 久久久久亚洲视频 | 一级毛片观看 | 欧美精产国品一二三区 | 精品国产欧美一区二区三区成人 | 久久久久国产精品一区二区 | 99热国产免费 | 国产黄色大片 | 欧美精品久久 | 欧美激情在线播放 | 老外几下就让我高潮了 | 亚洲视频 欧美视频 | 国产黄色av网站 | 欧美a∨| 日韩中文av在线 | av片网| 综合亚洲视频 | 国产成人精品一区二区三 | 欧美午夜精品 | 欧美国产日韩成人 | 久久久久久亚洲 | 日韩欧美一级精品久久 | 国产成人aⅴ | 影音先锋中文在线 | 国产黄色网址在线观看 | 亚洲视频中文字幕 | 中文字幕亚洲欧美日韩在线不卡 | 天天综合永久入口 | 国内精品视频在线 | 日本亚洲欧美 | 亚洲狠狠爱 | 欧美日韩国产在线观看 | 人人操日日干 | 国产亚洲成av人片在线观看桃 |