在 Android 上退出 SQLite shell [英] Exit the SQLite shell on Android

查看:23
本文介绍了在 Android 上退出 SQLite shell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Mac OS X 的 ADB shell 上使用 SQLite 3使用以下方法查看我的应用程序数据库:

I'm using SQLite 3 on Mac OS X's ADB shell to view my application database using:

#sqlite3 mydb.db
SQLite version 3.5.9
Enter ".help" for instructions
sqlite> quit
...> .quit
...>

在我错误地输入了上面的 quit 命令后,例如,而不是 .quit,shell 进入了 ...> 提示,其中所有已知命令似乎都不起作用.我什至无法通过 Ctrl + CCtrl + /Esc

After I wrongly typed the quit command above, instead of the .quit for example, the shell goes into the ...> prompt where none of the known commands seem to work. I can't even get out by Ctrl + C, Ctrl + /, Esc, etc.

我必须 + Q 即退出终端实例重新启动.我知道这不完全是一个编程问题,但我在这里写这篇文章真的很烦人.

I have to + Q i.e. quit the terminal instance to restart. I know this isn't exactly a programming question, but it really is annoying enough for me to write here.

在发生此类错误后,如何在不重新启动终端的情况下恢复终端的正常运行?

How can I restore sanity to the terminal after such errors without relaunching the terminal?

推荐答案

键入 ; 并按 Enter.

这可能会解决它.这适用于其他 SQL 内容.

This might fix it. This works for other SQL stuff.

这篇关于在 Android 上退出 SQLite shell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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