久久久久久久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ù)的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                問(wèn)題描述

                我正在通過(guò) Flex 在 AIR 中開(kāi)發(fā)應(yīng)用程序,但我沒(méi)有發(fā)現(xiàn) SQLite 哪里出了問(wèn)題(我已經(jīng)習(xí)慣了 MySQL).參數(shù)有效,但僅在某些情況下有效.這部分是針對(duì)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 語(yǔ)法錯(cuò)誤):

                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ù)庫(kù)標(biāo)識(shí)符(表、列、視圖、架構(gòu)等)或數(shù)據(jù)庫(kù)函數(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.

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

                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.

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

                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ù)的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(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 源連接器時(shí)間戳模式對(duì) 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>

                          主站蜘蛛池模板: 天天爽夜夜爽精品视频婷婷 | 国产美女视频黄 | 国产精品99久久久久久www | 日韩欧美在线视频 | 91se在线| 日韩福利在线 | 久久久久国产精品 | 欧美日韩三级 | 日韩av在线一区二区三区 | 国产性生活一级片 | 亚洲欧美成人影院 | 插插宗合网 | 国产精品美女久久久久aⅴ国产馆 | 中文字幕三区 | 欧美日韩国产精品一区 | 午夜影院 | 亚洲精品一区二区 | 精品日韩欧美一区二区 | 中文字幕在线一区 | 日韩无| 99在线免费观看视频 | 91在线免费观看 | 久久国产精品网 | 国产亚洲精品美女久久久久久久久久 | 91大片| 伊人伊人| 亚洲国产精品久久久 | 日韩精品视频在线 | 天堂精品 | 久久久久久成人 | 久久久亚洲 | 午夜av成人| 欧美激情黄色 | 久久午夜电影 | 一区二区三区中文字幕 | 99精品视频在线 | 国产精品成人在线 | 国产精品久久一区 | 色视频一区二区 | 婷婷久久综合 | 欧美一区二区精品 |