php - Selecting multiple tables in SQL -
im new working sql. working sqlite , in db have multiple tables. in case have 2 tables should shown options. 1 shown other 1 don't know how access it.
this have want add one. instead "clients" "types"
how can access other table in same time?
$sql = "select 'i'.*, 't'.'name' 'client_name' 'items' 'i' join 'clients' 't' on 't'.'id' = 'i'.'client' order 'i'.'date' asc"; $sql = "select * 'clients' order 'id'";
Comments
Post a Comment