Trouble of friends to help, thank, I use dedecms, member the main table for dede_member, I added an additional table dede_member_company, one of the two tables associated and the same field for mid, I now the question is: for two tables and dede_member_company province at the same time the mid phase field contains hebei this field, should do the query, use dede: loop label, online waiting for,
CodePudding user response:
SQL statements like this label that, it is recommended that the original poster to related BBS posts for help;
select * from dede_member join Dede_member_company on Dede_member. Mid=dede_member_company. Mid Hebei where dede_member_company. Provice like '% %'