用户问诊记录 SQL 语句示例 - MySQL 数据库
{ "title": "用户问诊记录 SQL 语句示例 - MySQL 数据库", "description": "本文提供一个 SQL 语句示例,用于从 MySQL 数据库中查询用户的问诊记录。该示例包含了四个表:用户表、挂号表、问诊记录表和医生表,并使用了 JOIN 操作来关联这些表。", "keywords": "用户问诊记录, SQL 语句, MySQL 数据库, JOIN, 查询, 表关联", "content": "SELECT p.id, p.posts_content, p.posts_image, p.create_time, d.name AS doctor_name, r.disease_type\nFROM posts p\nJOIN registration r ON p.registration_id = r.id\nJOIN doctor d ON p.doctor_id = d.id\nWHERE r.user_id = 'user_id'"
原文地址: https://www.cveoy.top/t/topic/p8R4 著作权归作者所有。请勿转载和采集!