如何在sqlite中创建数据库? [英] How to create database in sqlite?

查看:97
本文介绍了如何在sqlite中创建数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我是sqlite的新手。我正在制作一个Android应用程序。在服务器端我想在sqlite中使用数据库。但无法在其上创建自己的数据库。





Hello
I am new to sqlite. I am making an android app. on server side i want a database in sqlite. but unable to create own database on it.


sqlite> mydb.db;
 OR
sqlite> sqlite3 mydb.db;
  OR
sqlite> $sqlite3 mydb.db;

Error: near "mydb": syntax error

sqlite> $ sqlite3 mydb.db;

Error: unrecognized token: "$"





i已经尝试了以上所有命令,但它给出了错误。

请指导我什么是正确的命令。

提前致谢。



i had tried all the above commands but it gives error.
please guide me what is the correct command.
Thanks in advance.

推荐答案

sqlite3 mydb.db;

错误:接近 mydb:语法错误

sqlite>
sqlite3 mydb.db; Error: near "mydb": syntax error sqlite>


sqlite3 mydb.db;

错误:无法识别的令牌:
sqlite3 mydb.db; Error: unrecognized token: "






i已经尝试了以上所有命令,但它给出了错误。

请指导我一下是正确的命令。

提前致谢。



i had tried all the above commands but it gives error.
please guide me what is the correct command.
Thanks in advance.


这篇关于如何在sqlite中创建数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆