MySQL SubQuery - MySQL 3.23

前端 未结 4 1853
南旧
南旧 2021-01-25 00:45

I\'ve 2 tables, emp_master and passport_details.

emp_master(emp_id,first_name,email_id,dob,doj,status.........)
passport_details(id, emp_id,passport_number,given         


        
4条回答
  •  一生所求
    2021-01-25 01:16

    A quick Google suggests that subqueries were brought in in MySql 4.1. So they're not supported in 3.23.

    Thy something along these lines instead:

    SELECT emp_id,first_name
    FROM emp_master
    JOIN passport_details ON emp_id
    WHERE status = 1;
    

提交回复
热议问题