当前位置:网站首页>Left connection query of Android database
Left connection query of Android database
2022-07-19 08:51:00 【Blue static cloud】
Formatted sql character string
String sql = String.format("select " +
"mg.is_read,mg.group_id,cgd.sender_id,cgd.target_id,mg.group_name,mg.intention_type,mg.chat_type,mg.short_msg,mg.group_avatar,mg.avoid_disturbance,mg.update_time" +
",cgd.id,cgd.title,cgd.message,cgd.sender_avatar_name" +
",cgd.thumbnail_path,cgd.video_path,cgd.audio_path,cgd.img_path,cgd.file_path,cgd.sent_time,cgd.extra," +
"cgd.uuid,cgd.received_status,cgd.sent_status,cgd.media_type" +
" from %s as mg left join %s as cgd on mg.group_id = cgd.group_id where mg.group_id = '%s' and cgd.id = %s;", MSG_GROUP, CHAT_GROUP_DETAIL, groupId, id);
Initiate a query
Cursor cursor = db.rawQuery(sql, null);
边栏推荐
- 2022年P气瓶充装考试练习题模拟考试平台操作
- 用于语义分割的Hausdorff损失函数
- Translucent double glass side thickness
- Finishing of key concepts on deep neural networks exercises in the fourth week of in-depth learning
- JS study note 04-05 - modification of constructor and creation using factory method
- 【回归预测】基于粒子滤波实现锂离子电池寿命预测附matlab代码
- JS learning notes 01-03 - Reference of this, global scope, method
- Sorting out of neural network basics exercises in the second week of in-depth study
- [face recognition] face recognition based on histogram histogram with matlab code
- 分布式事务-可靠消息最终一致性解决方案
猜你喜欢
随机推荐
MySQL data type
动态内存管理
Support for multiple devices in (ghost engine)
Bean的作用域和生命周期
What is memory overflow
Baidu Apollo
【AXI】解读AXI协议的额外信号(QOS信号,REGION信号,与USER信号)
使用toruch.nn搭建最简单的神经网络骨架
Redis
JS learning notes 01-03 - Reference of this, global scope, method
MySQL读写分离
JS learning notes 06-08: traversal of arrays and four methods of arrays
RPA相关知识点整理
pygame中display模块
gradle入门笔记
LeetCode 剑指 Offer II 041. 滑动窗口的平均值:低空间消耗解决
JS learning notes 09-12: prototype objects, foreach+tostring and recycle bin
【人脸识别】基于直方图Histogram实现人脸识别附matlab代码
Redis
JS learning notes 06-08: traversal of arrays and four methods of arrays








![[face recognition] face recognition based on histogram histogram with matlab code](/img/a6/ae776d084a207647501ca951e32000.png)
