久久久久久久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. 主站蜘蛛池模板: 国产免费一二三区 | 久久91av | 久久一区二区av | 黄色在线观看国产 | 黄色在线播放视频 | wwww.8888久久爱站网 | 一区二区免费在线视频 | 91精品在线播放 | 亚洲国产精品久久久久 | 亚洲国产精品一区 | 日韩成人免费视频 | 欧美国产一区二区 | 国产乱码精品一区二区三区av | 国产区一区二区三区 | 一区二区视频在线 | 一级网站 | 中文字幕亚洲视频 | 日韩欧美中文字幕在线观看 | 久久99精品久久久久婷婷 | 国产精品一区在线 | 欧美激情一区二区三区 | 午夜免费网 | 欧美一区二区在线看 | 91亚洲国产成人久久精品网站 | 亚洲一区二区三区视频 | 中文字幕第一页在线 | 国产精品久久国产愉拍 | 国际精品鲁一鲁一区二区小说 | 国产最新视频在线 | 欧美日韩国产中文 | 天天天久久久 | 在线精品观看 | 国产精品揄拍一区二区 | wwww.8888久久爱站网 | www.jizzjizz| 久久国产精品一区二区 | 精品国产免费一区二区三区五区 | 日本不卡一区二区三区在线观看 | 国产一区二区黑人欧美xxxx | 国产在线观 | 成人免费视频网址 |