English 中文(简体)
电话交换数据库
原标题:Android Phonegap Database Issue

我在电话应用中建立了一个数据库,并配备测试值。

var db = window.openDatabase("achievements", "1.0", "AchievementsDB", 1000);
    db.transaction(createTables, function(tx, error){
        console.log("Error Creating Tables: "+error);
    }, function(){
        console.log("Successfully created Tables in Database");
    });

这里的创造 表1

function createTables(tx){
tx.executeSql( CREATE TABLE IF NOT EXISTS Achievements (name unique, description) );  
tx.executeSql( INSERT INTO Achievements (name, description) VALUES (0, 1) );
tx.executeSql( INSERT INTO Achievements (name, description) VALUES ("good", "morning") ); 

iii

问题是。 我总是回击错误。 当我尝试数据库中一个数据查询系统时,总是说检索的数据(结果数据)没有界定。 此外,我很想知道,为什么我能够“接触电话的数据/数据/米包装/数据库(实际上,DDMS只是一个空洞的数据夹)。

我真心实意地知道,我这里的问题究竟是什么,我真心 go地 go着这个问题,并对此进行了大量讨论。 请提供任何帮助。

最佳回答

首先,所有电话都在此建立了数据库。

/data/data/package-name/app_database/file__0/0000000000000001.db

第二步 在什么地方,你实际上在哪里得到问答?

问题回答

暂无回答




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签