{"id":60966,"date":"2025-04-26T08:17:36","date_gmt":"2025-04-26T00:17:36","guid":{"rendered":"https:\/\/fwq.ai\/blog\/60966\/"},"modified":"2025-04-26T08:17:36","modified_gmt":"2025-04-26T00:17:36","slug":"zen-cart%e5%88%a0%e9%99%a4%e4%ba%a7%e5%93%81sql","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/60966\/","title":{"rendered":"Zen Cart\u5220\u9664\u4ea7\u54c1Sql"},"content":{"rendered":"<p style=\"margin: 3px 0px 5px;padding: 3px;line-height: 22.200000762939453px\"> Zen Cart\u9996\u5148\u5907\u4efd\u6574\u4e2a\u6570\u636e\u5e93\u662f\u4e2a\u597d\u4e60\u60ef\u3002<\/p>\n<p style=\"margin: 3px 0px 5px;padding: 3px;line-height: 22.200000762939453px\"> 1.\u67e5\u627e\u5305\u542b\u6709products_id\u5b57\u6bb5\u7684\u6570\u636e\u8868\u3002<\/p>\n<table style=\"margin: 0px !important;padding: 0px !important;border: 0px !important;float: none !important;vertical-align: baseline !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;line-height: 1.1em !important;font-size: 1em !important;min-height: inherit !important;border-collapse: collapse !important;background: none !important\">\n<tbody>\n<tr>\n<td style=\"margin: 0px !important;padding: 0px !important;font-size: 1em !important;line-height: 1.1em !important;border: 0px !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: 3em !important;min-height: inherit !important;background: none !important\"> <code>1<\/code><\/td>\n<td style=\"margin: 0px !important;padding: 0px 0px 0px 0.5em !important;font-size: 1em !important;line-height: 1.1em !important;border-width: 0px 0px 0px 3px !important;border-left-style: solid !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;min-height: inherit !important;background: none !important\"> <code>select<\/code>&nbsp;<code>table_schema, table_name, column_name<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table style=\"margin: 0px !important;padding: 0px !important;border: 0px !important;float: none !important;vertical-align: baseline !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;line-height: 1.1em !important;font-size: 1em !important;min-height: inherit !important;border-collapse: collapse !important;background: none !important\">\n<tbody>\n<tr>\n<td style=\"margin: 0px !important;padding: 0px !important;font-size: 1em !important;line-height: 1.1em !important;border: 0px !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: 3em !important;min-height: inherit !important;background: none !important\"> <code>2<\/code><\/td>\n<td style=\"margin: 0px !important;padding: 0px 0px 0px 0.5em !important;font-size: 1em !important;line-height: 1.1em !important;border-width: 0px 0px 0px 3px !important;border-left-style: solid !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;min-height: inherit !important;background: none !important\"> <code>&nbsp;&nbsp;<\/code><code>from<\/code>&nbsp;<code>information_schema.columns<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table style=\"margin: 0px !important;padding: 0px !important;border: 0px !important;float: none !important;vertical-align: baseline !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;line-height: 1.1em !important;font-size: 1em !important;min-height: inherit !important;border-collapse: collapse !important;background: none !important\">\n<tbody>\n<tr>\n<td style=\"margin: 0px !important;padding: 0px !important;font-size: 1em !important;line-height: 1.1em !important;border: 0px !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: 3em !important;min-height: inherit !important;background: none !important\"> <code>3<\/code><\/td>\n<td style=\"margin: 0px !important;padding: 0px 0px 0px 0.5em !important;font-size: 1em !important;line-height: 1.1em !important;border-width: 0px 0px 0px 3px !important;border-left-style: solid !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;min-height: inherit !important;background: none !important\"> <code>&nbsp;&nbsp;<\/code><code>where<\/code>&nbsp;<code>column_name =&nbsp;<\/code><code>'products_id'<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table style=\"margin: 0px !important;padding: 0px !important;border: 0px !important;float: none !important;vertical-align: baseline !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;line-height: 1.1em !important;font-size: 1em !important;min-height: inherit !important;border-collapse: collapse !important;background: none !important\">\n<tbody>\n<tr>\n<td style=\"margin: 0px !important;padding: 0px !important;font-size: 1em !important;line-height: 1.1em !important;border: 0px !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: 3em !important;min-height: inherit !important;background: none !important\"> <code>4<\/code><\/td>\n<td style=\"margin: 0px !important;padding: 0px 0px 0px 0.5em !important;font-size: 1em !important;line-height: 1.1em !important;border-width: 0px 0px 0px 3px !important;border-left-style: solid !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;min-height: inherit !important;background: none !important\"> <code>&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code>and<\/code>&nbsp;<code>table_schema =&nbsp;<\/code><code>'your-db-name'<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table style=\"margin: 0px !important;padding: 0px !important;border: 0px !important;float: none !important;vertical-align: baseline !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;line-height: 1.1em !important;font-size: 1em !important;min-height: inherit !important;border-collapse: collapse !important;background: none !important\">\n<tbody>\n<tr>\n<td style=\"margin: 0px !important;padding: 0px !important;font-size: 1em !important;line-height: 1.1em !important;border: 0px !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: 3em !important;min-height: inherit !important;background: none !important\"> <code>5<\/code><\/td>\n<td style=\"margin: 0px !important;padding: 0px 0px 0px 0.5em !important;font-size: 1em !important;line-height: 1.1em !important;border-width: 0px 0px 0px 3px !important;border-left-style: solid !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;min-height: inherit !important;background: none !important\"> <code>&nbsp;&nbsp;<\/code><code>order<\/code>&nbsp;<code>by<\/code>&nbsp;<code>table_name;<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin: 3px 0px 5px;padding: 3px;line-height: 22.200000762939453px\"> 2. \u627e\u5230\u8981\u5220\u9664\u7684products_id\u3002<\/p>\n<table style=\"margin: 0px !important;padding: 0px !important;border: 0px !important;float: none !important;vertical-align: baseline !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;line-height: 1.1em !important;font-size: 1em !important;min-height: inherit !important;border-collapse: collapse !important;background: none !important\">\n<tbody>\n<tr>\n<td style=\"margin: 0px !important;padding: 0px !important;font-size: 1em !important;line-height: 1.1em !important;border: 0px !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: 3em !important;min-height: inherit !important;background: none !important\"> <code>1<\/code><\/td>\n<td style=\"margin: 0px !important;padding: 0px 0px 0px 0.5em !important;font-size: 1em !important;line-height: 1.1em !important;border-width: 0px 0px 0px 3px !important;border-left-style: solid !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;min-height: inherit !important;background: none !important\"> <code>create<\/code>&nbsp;<code>table<\/code>&nbsp;<code>_products_id_del<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table style=\"margin: 0px !important;padding: 0px !important;border: 0px !important;float: none !important;vertical-align: baseline !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;line-height: 1.1em !important;font-size: 1em !important;min-height: inherit !important;border-collapse: collapse !important;background: none !important\">\n<tbody>\n<tr>\n<td style=\"margin: 0px !important;padding: 0px !important;font-size: 1em !important;line-height: 1.1em !important;border: 0px !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: 3em !important;min-height: inherit !important;background: none !important\"> <code>2<\/code><\/td>\n<td style=\"margin: 0px !important;padding: 0px 0px 0px 0.5em !important;font-size: 1em !important;line-height: 1.1em !important;border-width: 0px 0px 0px 3px !important;border-left-style: solid !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;min-height: inherit !important;background: none !important\"> <code>as<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table style=\"margin: 0px !important;padding: 0px !important;border: 0px !important;float: none !important;vertical-align: baseline !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;line-height: 1.1em !important;font-size: 1em !important;min-height: inherit !important;border-collapse: collapse !important;background: none !important\">\n<tbody>\n<tr>\n<td style=\"margin: 0px !important;padding: 0px !important;font-size: 1em !important;line-height: 1.1em !important;border: 0px !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: 3em !important;min-height: inherit !important;background: none !important\"> <code>3<\/code><\/td>\n<td style=\"margin: 0px !important;padding: 0px 0px 0px 0.5em !important;font-size: 1em !important;line-height: 1.1em !important;border-width: 0px 0px 0px 3px !important;border-left-style: solid !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;min-height: inherit !important;background: none !important\"> <code>select<\/code>&nbsp;<code>pd.products_id, pd.products_name<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table style=\"margin: 0px !important;padding: 0px !important;border: 0px !important;float: none !important;vertical-align: baseline !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;line-height: 1.1em !important;font-size: 1em !important;min-height: inherit !important;border-collapse: collapse !important;background: none !important\">\n<tbody>\n<tr>\n<td style=\"margin: 0px !important;padding: 0px !important;font-size: 1em !important;line-height: 1.1em !important;border: 0px !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: 3em !important;min-height: inherit !important;background: none !important\"> <code>4<\/code><\/td>\n<td style=\"margin: 0px !important;padding: 0px 0px 0px 0.5em !important;font-size: 1em !important;line-height: 1.1em !important;border-width: 0px 0px 0px 3px !important;border-left-style: solid !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;min-height: inherit !important;background: none !important\"> <code>&nbsp;&nbsp;<\/code><code>from<\/code>&nbsp;<code>products_description pd<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table style=\"margin: 0px !important;padding: 0px !important;border: 0px !important;float: none !important;vertical-align: baseline !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;line-height: 1.1em !important;font-size: 1em !important;min-height: inherit !important;border-collapse: collapse !important;background: none !important\">\n<tbody>\n<tr>\n<td style=\"margin: 0px !important;padding: 0px !important;font-size: 1em !important;line-height: 1.1em !important;border: 0px !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: 3em !important;min-height: inherit !important;background: none !important\"> <code>5<\/code><\/td>\n<td style=\"margin: 0px !important;padding: 0px 0px 0px 0.5em !important;font-size: 1em !important;line-height: 1.1em !important;border-width: 0px 0px 0px 3px !important;border-left-style: solid !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;min-height: inherit !important;background: none !important\"> <code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code>inner<\/code>&nbsp;<code>join<\/code>&nbsp;<code>products_to_categories pc<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table style=\"margin: 0px !important;padding: 0px !important;border: 0px !important;float: none !important;vertical-align: baseline !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;line-height: 1.1em !important;font-size: 1em !important;min-height: inherit !important;border-collapse: collapse !important;background: none !important\">\n<tbody>\n<tr>\n<td style=\"margin: 0px !important;padding: 0px !important;font-size: 1em !important;line-height: 1.1em !important;border: 0px !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: 3em !important;min-height: inherit !important;background: none !important\"> <code>6<\/code><\/td>\n<td style=\"margin: 0px !important;padding: 0px 0px 0px 0.5em !important;font-size: 1em !important;line-height: 1.1em !important;border-width: 0px 0px 0px 3px !important;border-left-style: solid !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;min-height: inherit !important;background: none !important\"> <code>&nbsp;&nbsp;&nbsp;&nbsp;<\/code><code>on<\/code>&nbsp;<code>pd.products_id = pc.products_id<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table style=\"margin: 0px !important;padding: 0px !important;border: 0px !important;float: none !important;vertical-align: baseline !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;line-height: 1.1em !important;font-size: 1em !important;min-height: inherit !important;border-collapse: collapse !important;background: none !important\">\n<tbody>\n<tr>\n<td style=\"margin: 0px !important;padding: 0px !important;font-size: 1em !important;line-height: 1.1em !important;border: 0px !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: 3em !important;min-height: inherit !important;background: none !important\"> <code>7<\/code><\/td>\n<td style=\"margin: 0px !important;padding: 0px 0px 0px 0.5em !important;font-size: 1em !important;line-height: 1.1em !important;border-width: 0px 0px 0px 3px !important;border-left-style: solid !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;min-height: inherit !important;background: none !important\"> <code>&nbsp;<\/code><code>where<\/code>&nbsp;<code>pc.categories_id&nbsp;<\/code><code>in<\/code>&nbsp;<code>(...)<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table style=\"margin: 0px !important;padding: 0px !important;border: 0px !important;float: none !important;vertical-align: baseline !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;line-height: 1.1em !important;font-size: 1em !important;min-height: inherit !important;border-collapse: collapse !important;background: none !important\">\n<tbody>\n<tr>\n<td style=\"margin: 0px !important;padding: 0px !important;font-size: 1em !important;line-height: 1.1em !important;border: 0px !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: 3em !important;min-height: inherit !important;background: none !important\"> <code>8<\/code><\/td>\n<td style=\"margin: 0px !important;padding: 0px 0px 0px 0.5em !important;font-size: 1em !important;line-height: 1.1em !important;border-width: 0px 0px 0px 3px !important;border-left-style: solid !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;min-height: inherit !important;background: none !important\"> <code>&nbsp;&nbsp;&nbsp;<\/code><code>and<\/code>&nbsp;<code>pd.products_name&nbsp;<\/code><code>like<\/code>&nbsp;<code>'% | %'<\/code><code>;<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin: 3px 0px 5px;padding: 3px;line-height: 22.200000762939453px\"> 3. delete \u4e4b\u3002<\/p>\n<p>    view source  &nbsp;  print?     <\/p>\n<table style=\"margin: 0px !important;padding: 0px !important;border: 0px !important;float: none !important;vertical-align: baseline !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;line-height: 1.1em !important;font-size: 1em !important;min-height: inherit !important;border-collapse: collapse !important;background: none !important\">\n<tbody>\n<tr>\n<td style=\"margin: 0px !important;padding: 0px !important;font-size: 1em !important;line-height: 1.1em !important;border: 0px !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: 3em !important;min-height: inherit !important;background: none !important\"> <code>01<\/code><\/td>\n<td style=\"margin: 0px !important;padding: 0px 0px 0px 0.5em !important;font-size: 1em !important;line-height: 1.1em !important;border-width: 0px 0px 0px 3px !important;border-left-style: solid !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;min-height: inherit !important;background: none !important\"> <code>delete<\/code>&nbsp;<code>from<\/code>&nbsp;<code>products_to_categories&nbsp;<\/code><code>where<\/code>&nbsp;<code>products_id&nbsp;<\/code><code>in<\/code>&nbsp;<code>();<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table style=\"margin: 0px !important;padding: 0px !important;border: 0px !important;float: none !important;vertical-align: baseline !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;line-height: 1.1em !important;font-size: 1em !important;min-height: inherit !important;border-collapse: collapse !important;background: none !important\">\n<tbody>\n<tr>\n<td style=\"margin: 0px !important;padding: 0px !important;font-size: 1em !important;line-height: 1.1em !important;border: 0px !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: 3em !important;min-height: inherit !important;background: none !important\"> <code>02<\/code><\/td>\n<td style=\"margin: 0px !important;padding: 0px 0px 0px 0.5em !important;font-size: 1em !important;line-height: 1.1em !important;border-width: 0px 0px 0px 3px !important;border-left-style: solid !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;min-height: inherit !important;background: none !important\"> <code>delete<\/code>&nbsp;<code>from<\/code>&nbsp;<code>products&nbsp;<\/code><code>where<\/code>&nbsp;<code>products_id&nbsp;<\/code><code>in<\/code>&nbsp;<code>();<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table style=\"margin: 0px !important;padding: 0px !important;border: 0px !important;float: none !important;vertical-align: baseline !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;line-height: 1.1em !important;font-size: 1em !important;min-height: inherit !important;border-collapse: collapse !important;background: none !important\">\n<tbody>\n<tr>\n<td style=\"margin: 0px !important;padding: 0px !important;font-size: 1em !important;line-height: 1.1em !important;border: 0px !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: 3em !important;min-height: inherit !important;background: none !important\"> <code>03<\/code><\/td>\n<td style=\"margin: 0px !important;padding: 0px 0px 0px 0.5em !important;font-size: 1em !important;line-height: 1.1em !important;border-width: 0px 0px 0px 3px !important;border-left-style: solid !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;min-height: inherit !important;background: none !important\"> <code>delete<\/code>&nbsp;<code>from<\/code>&nbsp;<code>products_description&nbsp;<\/code><code>where<\/code>&nbsp;<code>products_id&nbsp;<\/code><code>in<\/code>&nbsp;<code>();<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table style=\"margin: 0px !important;padding: 0px !important;border: 0px !important;float: none !important;vertical-align: baseline !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;line-height: 1.1em !important;font-size: 1em !important;min-height: inherit !important;border-collapse: collapse !important;background: none !important\">\n<tbody>\n<tr>\n<td style=\"margin: 0px !important;padding: 0px !important;font-size: 1em !important;line-height: 1.1em !important;border: 0px !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: 3em !important;min-height: inherit !important;background: none !important\"> <code>04<\/code><\/td>\n<td style=\"margin: 0px !important;padding: 0px 0px 0px 0.5em !important;font-size: 1em !important;line-height: 1.1em !important;border-width: 0px 0px 0px 3px !important;border-left-style: solid !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;min-height: inherit !important;background: none !important\"> &nbsp;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table style=\"margin: 0px !important;padding: 0px !important;border: 0px !important;float: none !important;vertical-align: baseline !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;line-height: 1.1em !important;font-size: 1em !important;min-height: inherit !important;border-collapse: collapse !important;background: none !important\">\n<tbody>\n<tr>\n<td style=\"margin: 0px !important;padding: 0px !important;font-size: 1em !important;line-height: 1.1em !important;border: 0px !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: 3em !important;min-height: inherit !important;background: none !important\"> <code>05<\/code><\/td>\n<td style=\"margin: 0px !important;padding: 0px 0px 0px 0.5em !important;font-size: 1em !important;line-height: 1.1em !important;border-width: 0px 0px 0px 3px !important;border-left-style: solid !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;min-height: inherit !important;background: none !important\"> <code>delete<\/code>&nbsp;<code>from<\/code>&nbsp;<code>products_attributes ..<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table style=\"margin: 0px !important;padding: 0px !important;border: 0px !important;float: none !important;vertical-align: baseline !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;line-height: 1.1em !important;font-size: 1em !important;min-height: inherit !important;border-collapse: collapse !important;background: none !important\">\n<tbody>\n<tr>\n<td style=\"margin: 0px !important;padding: 0px !important;font-size: 1em !important;line-height: 1.1em !important;border: 0px !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: 3em !important;min-height: inherit !important;background: none !important\"> <code>06<\/code><\/td>\n<td style=\"margin: 0px !important;padding: 0px 0px 0px 0.5em !important;font-size: 1em !important;line-height: 1.1em !important;border-width: 0px 0px 0px 3px !important;border-left-style: solid !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;min-height: inherit !important;background: none !important\"> <code>delete<\/code>&nbsp;<code>from<\/code>&nbsp;<code>products_discount_quantity ..<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table style=\"margin: 0px !important;padding: 0px !important;border: 0px !important;float: none !important;vertical-align: baseline !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;line-height: 1.1em !important;font-size: 1em !important;min-height: inherit !important;border-collapse: collapse !important;background: none !important\">\n<tbody>\n<tr>\n<td style=\"margin: 0px !important;padding: 0px !important;font-size: 1em !important;line-height: 1.1em !important;border: 0px !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: 3em !important;min-height: inherit !important;background: none !important\"> <code>07<\/code><\/td>\n<td style=\"margin: 0px !important;padding: 0px 0px 0px 0.5em !important;font-size: 1em !important;line-height: 1.1em !important;border-width: 0px 0px 0px 3px !important;border-left-style: solid !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;min-height: inherit !important;background: none !important\"> <code>delete<\/code>&nbsp;<code>from<\/code>&nbsp;<code>products_notifications ..<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table style=\"margin: 0px !important;padding: 0px !important;border: 0px !important;float: none !important;vertical-align: baseline !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;line-height: 1.1em !important;font-size: 1em !important;min-height: inherit !important;border-collapse: collapse !important;background: none !important\">\n<tbody>\n<tr>\n<td style=\"margin: 0px !important;padding: 0px !important;font-size: 1em !important;line-height: 1.1em !important;border: 0px !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: 3em !important;min-height: inherit !important;background: none !important\"> <code>08<\/code><\/td>\n<td style=\"margin: 0px !important;padding: 0px 0px 0px 0.5em !important;font-size: 1em !important;line-height: 1.1em !important;border-width: 0px 0px 0px 3px !important;border-left-style: solid !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;min-height: inherit !important;background: none !important\"> <code>delete<\/code>&nbsp;<code>from<\/code>&nbsp;<code>products_with_attributes_stock ..<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table style=\"margin: 0px !important;padding: 0px !important;border: 0px !important;float: none !important;vertical-align: baseline !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;line-height: 1.1em !important;font-size: 1em !important;min-height: inherit !important;border-collapse: collapse !important;background: none !important\">\n<tbody>\n<tr>\n<td style=\"margin: 0px !important;padding: 0px !important;font-size: 1em !important;line-height: 1.1em !important;border: 0px !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: 3em !important;min-height: inherit !important;background: none !important\"> <code>09<\/code><\/td>\n<td style=\"margin: 0px !important;padding: 0px 0px 0px 0.5em !important;font-size: 1em !important;line-height: 1.1em !important;border-width: 0px 0px 0px 3px !important;border-left-style: solid !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;min-height: inherit !important;background: none !important\"> &nbsp;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table style=\"margin: 0px !important;padding: 0px !important;border: 0px !important;float: none !important;vertical-align: baseline !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;line-height: 1.1em !important;font-size: 1em !important;min-height: inherit !important;border-collapse: collapse !important;background: none !important\">\n<tbody>\n<tr>\n<td style=\"margin: 0px !important;padding: 0px !important;font-size: 1em !important;line-height: 1.1em !important;border: 0px !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: 3em !important;min-height: inherit !important;background: none !important\"> <code>10<\/code><\/td>\n<td style=\"margin: 0px !important;padding: 0px 0px 0px 0.5em !important;font-size: 1em !important;line-height: 1.1em !important;border-width: 0px 0px 0px 3px !important;border-left-style: solid !important;float: none !important;vertical-align: top !important;position: static !important;left: auto !important;top: auto !important;right: auto !important;bottom: auto !important;height: auto !important;width: auto !important;min-height: inherit !important;background: none !important\"> <code>\/\/ ...<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Zen Cart\u9996\u5148\u5907\u4efd\u6574\u4e2a\u6570\u636e\u5e93\u662f\u4e2a\u597d\u4e60\u60ef\u3002 1.\u67e5\u627e\u5305\u542b\u6709products_id\u5b57\u6bb5\u7684\u6570\u636e\u8868\u3002 1 select&nbsp;table_schema, table_name, column_name 2 &nbsp;&nbsp;from&nbsp;information_schema.columns 3 &nbsp;&nbsp;where&nbsp;column_name =&nbsp;&#8216;products_id&#8217; 4 &nbsp;&nbsp;&nbsp;&nbsp;and&nbsp;table_schema =&nbsp;&#8216;your-db-name&#8217; 5 &nbsp;&nbsp;order&nbsp;by&nbsp;table_name; 2. \u627e\u5230\u8981\u5220\u9664\u7684products_id\u3002 1 create&nbsp;table&nbsp;_products_id_del 2 as 3 select&nbsp;pd.products_id, pd.products_name 4 &nbsp;&nbsp;from&nbsp;products_description pd 5 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inner&nbsp;join&nbsp;products_to_categories pc 6 &nbsp;&nbsp;&nbsp;&nbsp;on&nbsp;pd.products_id = pc.products_id 7 &nbsp;where&nbsp;pc.categories_id&nbsp;in&nbsp;(&#8230;) 8 &nbsp;&nbsp;&nbsp;and&nbsp;pd.products_name&nbsp;like&nbsp;&#8216;% | %&#8217;; 3. delete \u4e4b\u3002 view source &nbsp; print? 01 delete&nbsp;from&nbsp;products_to_categories&nbsp;where&nbsp;products_id&nbsp;in&nbsp;(); 02 delete&nbsp;from&nbsp;products&nbsp;where&nbsp;products_id&nbsp;in&nbsp;(); 03 delete&nbsp;from&nbsp;products_description&nbsp;where&nbsp;products_id&nbsp;in&nbsp;(); [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-60966","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60966","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=60966"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60966\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=60966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=60966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=60966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}