NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
## 标量子查询 #### 概念 标量子查询:子查询得到结果是一个数据(一行一列). #### 语法 ~~~ select 字段 from 数据源 where 条件判断 =/<> (select 字段名 from 数据源 where 条件判断); //子查询得到的结果只有一个值. ~~~ 如: ~~~ select class_name from class where id = (select class_id from profile where name = '超人'); ~~~