2017-07-28 7 views

答えて

0

Prestashopの管理パネルから、すべての顧客データをエクスポートすることはできません。したがって、PHPMYADMINですべての顧客データを選択し、CSVシートをエクスポートするカスタムSQLクエリを作成する必要があります。

次のクエリを使用すると、アドレスを持つすべての顧客を選択できます。あなたがアドレスを持っていないすべての顧客を選択することができます次のクエリを使用して

select ps_customer.id_customer, ps_customer.email, ps_customer.firstname, 
 
ps_customer.lastname, ps_customer.passwd, ps_customer.company, 
 
ps_customer.birthday, ps_customer.newsletter, 
 
ps_address.id_country, ps_address.id_state, ps_address.address1, ps_address.address2, 
 
ps_address.postcode, ps_address.city, ps_address.phone, ps_address.vat_number 
 
from ps_customer INNER JOIN ps_address 
 
ON ps_customer.id_customer=ps_address.id_customer;

SELECT id_customer, email, firstname, lastname, passwd, company, birthday, newsletter 
 
FROM ps_customer WHERE id_customer NOT IN (SELECT id_customer FROM ps_address);

顧客属性のあなたの必要性に基づいてクエリをカスタマイズします。

朗読! :)

関連する問題