数据库总结
- 创建数据库
create database database-name 删除数据库
drop database dbname创建一个新表
create table tabname删除一个表
drop table tabname- 查询所有数据
select * from tbl_usr_member - 条件查询语句
select * from tbl_usr_imei where company=“大健康总公司” 查询大健康总公司的IMEI号 PS:引号用英语的 - 多条件并关系查询语句
select * from tbl_usr_imei where company="大健康总公司" and imei="864631020533333" 查询大健康总公司IMEI号864631020533333的用户 - 多条件或关系查询语句
select * from tbl_usr_imei where company="大健康总公司" or company="斯福德" 查询大健康总公司和斯福德的IMEI号
select * from tbl_usr_imei where company="大健康总公司,斯福德" -
monkey常用命令
-
1.--ignore-security-exception 跳过崩溃,继续运行monkey
2.-v增加反馈信息的详细级别
3.-p 指定一个或多个包
-
1.adb shell monkey -p com.safety.healthspeaker -v 1000 让健康广播进行1000个动作,反馈一级详细信息。
2.adb shell monkey -p com.safety.act -v 1000 让乐简进行1000个动作,反馈一级详细信息。
3.adb shell monkey -p com.safety.healthspeaker -p com.safety.act -p com.android.providers.telephony -p com.android.mms -p com.android.settings -p com.android.gallery -p com.android.camera --throttle 300 -s 900 --ignore-crashes --ignore-timeouts --ignore-security-exceptions --ignore-native-crashes --monitor-native-crashes -v -v -v 100000 >monkey.txt
乐简和手机常用功能跑100000次,日志以monkey。TXT
4.adb shell monkey -p com.safety.healthspeaker -p com.safety.act -p com.android.settings -p --throttle 300 -s 900 --ignore-crashes --ignore-timeouts --ignore-security-exceptions --ignore-native-crashes --monitor-native-crashes --pct-montion-100 -v -v -v 10 >monkey111.txt
工作中涉及到的adb命令
-
1.打开任务管理器:devmgmt.msc
2.查看当前手机运行的进程:ps|grep -v system|grep -v root
3.利用adb命令导出文件:adb pull /sdcard/Safety/Desktop/error_2017-02-08_06-10-45.log D:\
4.adb shell
5.cd /sdcard/Safety/Desktop/lejian/statistics切换到sdcard/Safety/Desktop/lejian/statistics目录下
6.tail -f 2017-2-14.txt 流逝显示
7.tail -数字 2017-2-14.txt 显示最后X行