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

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

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

        Titanium sqlite ORDER BY 语句

        时间:2023-08-20
          <tfoot id='24ymY'></tfoot>
          1. <legend id='24ymY'><style id='24ymY'><dir id='24ymY'><q id='24ymY'></q></dir></style></legend>
              <bdo id='24ymY'></bdo><ul id='24ymY'></ul>

                  <tbody id='24ymY'></tbody>

                • <small id='24ymY'></small><noframes id='24ymY'>

                  <i id='24ymY'><tr id='24ymY'><dt id='24ymY'><q id='24ymY'><span id='24ymY'><b id='24ymY'><form id='24ymY'><ins id='24ymY'></ins><ul id='24ymY'></ul><sub id='24ymY'></sub></form><legend id='24ymY'></legend><bdo id='24ymY'><pre id='24ymY'><center id='24ymY'></center></pre></bdo></b><th id='24ymY'></th></span></q></dt></tr></i><div id='24ymY'><tfoot id='24ymY'></tfoot><dl id='24ymY'><fieldset id='24ymY'></fieldset></dl></div>
                  本文介绍了Titanium sqlite ORDER BY 语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  使用 Titanium appcelerator.如何使用单击按钮激活的 sql 查询对我的数据库进行排序.到目前为止,我的代码是:

                  Using Titanium appcelerator. How can i sort my database with an sql query which is activated on a button click. my code so far is:

                  SortButton.addEventListener('click',function(e){
                      sortList();
                  });
                  
                  
                  function sortList()
                  {
                      db.execute("SELECT * FROM SavedList ORDER BY SavedListed ASC");
                  }
                  

                  推荐答案

                  你的代码 : db.execute("SELECT * FROM SavedList ORDER BY SavedListed ASC");是正确的.只需在 db.execute 之前打开数据库并在 db.execute 之后关闭它.它会起作用.

                  Your code : db.execute("SELECT * FROM SavedList ORDER BY SavedListed ASC"); is correct. Just open database before db.execute and close it after db.execute. It will work.

                  打开数据库:var db = Ti.Database.open('databaseName');

                  To open database : var db = Ti.Database.open('databaseName');

                  关闭数据库:db.close();

                  To close database: db.close();

                  这篇关于Titanium sqlite ORDER BY 语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:SQLite Titanium 语法错误 下一篇:部署和配置 ODP.NET 以在不安装实体框架的情况下

                  相关文章

                  最新文章

                    1. <i id='XsKW1'><tr id='XsKW1'><dt id='XsKW1'><q id='XsKW1'><span id='XsKW1'><b id='XsKW1'><form id='XsKW1'><ins id='XsKW1'></ins><ul id='XsKW1'></ul><sub id='XsKW1'></sub></form><legend id='XsKW1'></legend><bdo id='XsKW1'><pre id='XsKW1'><center id='XsKW1'></center></pre></bdo></b><th id='XsKW1'></th></span></q></dt></tr></i><div id='XsKW1'><tfoot id='XsKW1'></tfoot><dl id='XsKW1'><fieldset id='XsKW1'></fieldset></dl></div>
                      <tfoot id='XsKW1'></tfoot>
                    2. <small id='XsKW1'></small><noframes id='XsKW1'>

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

                      <legend id='XsKW1'><style id='XsKW1'><dir id='XsKW1'><q id='XsKW1'></q></dir></style></legend>