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

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

  1. <tfoot id='zQmxR'></tfoot>

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

    1. SQLite 參數(shù) - 不允許表名作為參數(shù)

      SQLite Parameters - Not allowing tablename as parameter(SQLite 參數(shù) - 不允許表名作為參數(shù))

    2. <legend id='ugHEs'><style id='ugHEs'><dir id='ugHEs'><q id='ugHEs'></q></dir></style></legend>

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

            <bdo id='ugHEs'></bdo><ul id='ugHEs'></ul>

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

                <tfoot id='ugHEs'></tfoot>

              • 本文介紹了SQLite 參數(shù) - 不允許表名作為參數(shù)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                我正在通過 Flex 在 AIR 中開發(fā)應(yīng)用程序,但我沒有發(fā)現(xiàn) SQLite 哪里出了問題(我已經(jīng)習(xí)慣了 MySQL).參數(shù)有效,但僅在某些情況下有效.這部分是針對sql注入的內(nèi)置衛(wèi)生系統(tǒng)嗎?感謝您的幫助!

                I'm developing an application in AIR via Flex, but I'm not seeing where I'm going wrong with SQLite (I'm used to MySQL). Parameters work, but only in certain instances. Is this part of the built-in sanitation system against sql injection? Thanks for any help!

                作品:

                sqlite

                "INSERT :Fields FROM Category",其中參數(shù)為:Fields = "*"

                "INSERT :Fields FROM Category", where the parameter is :Fields = "*"

                as3

                var statement:SQLStatement = new SQLStatement();
                statement.connection = connection;
                statement.text = "INSERT :Fields FROM Category";
                statement.parameters[":Fields"] = "*";
                statement.execute;
                

                不起作用(:Table"處的 SQL 語法錯誤):

                sqlite

                "INSERT :Fields FROM :Table",其中參數(shù)為:Fields = "*" 和:Table = "Category"

                "INSERT :Fields FROM :Table", where the parameters are :Fields = "*" and :Table = "Category"

                as3

                var statement:SQLStatement = new SQLStatement();
                statement.connection = connection;
                statement.text = "INSERT :Fields FROM :Table";
                statement.parameters[":Fields"] = "*";
                statement.parameters[":Table"] = "Category";
                statement.execute;
                

                推薦答案

                通常不能將 SQL 參數(shù)/占位符用于數(shù)據(jù)庫標(biāo)識符(表、列、視圖、架構(gòu)等)或數(shù)據(jù)庫函數(shù)(例如,CURRENT_DATE),但僅用于綁定文字 values.

                Generally one cannot use SQL parameters/placeholders for database identifiers (tables, columns, views, schemas, etc.) or database functions (e.g., CURRENT_DATE), but instead only for binding literal values.

                通過服務(wù)器端對參數(shù)化(又名準(zhǔn)備好的)語句的支持,數(shù)據(jù)庫引擎會解析您的查詢一次,記住您將綁定的任何參數(shù)的特性——它們的類型、最大長度、精度等已解析查詢的后續(xù)執(zhí)行.但是,如果關(guān)鍵位(如數(shù)據(jù)庫對象)未知,則無法將查詢正確解析為其句法元素.

                With server-side support for parameterized (a.k.a. prepared) statements, the DB engine parses your query once, remembering out the peculiars of any parameters -- their types, max lengths, precisions, etc. -- that you will bind in subsequent executions of the already-parsed query. But the query cannot be properly parsed into its syntactic elements if critical bits, like database objects, are unknown.

                因此,通常必須自己替換表名,在存儲過程或客戶端代碼中,動態(tài)連接/插值/任何要正確執(zhí)行的 SQL 語句.在任何情況下,請記住使用您的 SQL API 函數(shù)來引用數(shù)據(jù)庫標(biāo)識符,因?yàn)?API 不會為您做這件事.

                So, one generally has to substitute table names oneself, in a stored procedure or in client code which dynamically concats/interpolates/whatevers the SQL statement to be properly executed. In any case, please remember to use your SQL API's function for quoting database identifiers, since the API won't do it for you.

                這篇關(guān)于SQLite 參數(shù) - 不允許表名作為參數(shù)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                相關(guān)文檔推薦

                Connect to SQLite in Apache Spark(在 Apache Spark 中連接到 SQLite)
                Kafka JDBC source connector time stamp mode failing for sqlite3(Kafka JDBC 源連接器時間戳模式對 sqlite3 失敗)
                Adobe Air: why SQLStatement#39;s getResult().data is null?(Adobe Air:為什么 SQLStatement 的 getResult().data 為空?)
                SQLite and Flex(SQLite 和 Flex)
                Adobe Air: convert sqlite#39;s result [object Object] to String?(Adobe Air:將 sqlite 的結(jié)果 [object Object] 轉(zhuǎn)換為 String?)
                sqlite amp; flex - insert into if not exists?(sqlite amp;flex - 如果不存在則插入?)
                  <i id='lDENu'><tr id='lDENu'><dt id='lDENu'><q id='lDENu'><span id='lDENu'><b id='lDENu'><form id='lDENu'><ins id='lDENu'></ins><ul id='lDENu'></ul><sub id='lDENu'></sub></form><legend id='lDENu'></legend><bdo id='lDENu'><pre id='lDENu'><center id='lDENu'></center></pre></bdo></b><th id='lDENu'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='lDENu'><tfoot id='lDENu'></tfoot><dl id='lDENu'><fieldset id='lDENu'></fieldset></dl></div>
                1. <legend id='lDENu'><style id='lDENu'><dir id='lDENu'><q id='lDENu'></q></dir></style></legend>
                  <tfoot id='lDENu'></tfoot>
                  • <small id='lDENu'></small><noframes id='lDENu'>

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

                          <tbody id='lDENu'></tbody>

                          主站蜘蛛池模板: 国产日韩91 | 国产免费视频 | 精精国产xxxx视频在线野外 | 成人在线视频看看 | 久久久高清 | 欧美一区免费 | 成人国产a| 国产欧美精品一区二区色综合 | 狠狠干天天干 | 久久精品成人 | 人人cao | 亚洲一区在线播放 | 一区二区三区四区免费观看 | 日韩国产中文字幕 | 五月婷婷 六月丁香 | 久久99深爱久久99精品 | 91原创视频在线观看 | 欧美一级黄 | www.五月婷婷.com | 欧美偷偷 | 天天综合永久 | 日本午夜精品 | 国产欧美综合在线 | 一区二区三区在线 | 久久中文字幕一区 | 日韩欧美在线视频播放 | jizz中国日本| 日韩欧美一区二区在线播放 | 日韩中文在线 | 米奇成人网 | 日韩国产精品一区二区三区 | 久久综合一区 | 99亚洲| 一级在线毛片 | 亚洲 中文 欧美 日韩 在线观看 | 丁香一区二区 | 亚洲精品小视频在线观看 | 亚欧洲精品在线视频免费观看 | 蜜桃一区 | 一级黄色片免费在线观看 | 久草综合在线视频 |