这句sql语句怎么用TP3.1的语法组装起来呢?

SELECT create_date,content,creator,belong_to_user,gs_log.customer_code,follow_up_way FROM gs_log 
LEFT JOIN gs_customer ON (gs_log.customer_code   =  gs_customer.customer_code) WHERE gs_customer.customer_code !=''

请问这句sql语句怎么用thinkphp 3.1的语法组装起来呢?

查看回复