OpenCart v1.5.3.1, Export plugin:
$query = "SELECT pd.*, cg.name FROM `".DB_PREFIX."product_discount` pd ";
$query .= "LEFT JOIN `".DB_PREFIX."customer_group` cg ON cg.customer_group_id=pd.customer_group_id ";
$query .= "ORDER BY pd.product_id, cg.name";
Can anybody explain, what pd
and cg
means here?
Meet similar sintax in other places, but not sure what it means and how to work with it...
Looks like it is some common thing, but I am quite new to work with data bases yet, please help :-(
This query generate error:
Notice: Error: Unknown column 'cg.name' in 'field list' Error No: 1054
pd is the alias name for table `product_discount`
cg is the alias name for table `customer_group`
Notice: Error: Unknown column 'cg.name' in 'field list' Error No: 1054
This would actually mean there is no field of name in the table customer_group
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.