JSSSX Posted April 23, 2016 Share Posted April 23, 2016 (edited) Hello, I am often using this command to delete the unused carts from non customers : DELETE FROM `ps_cart` WHERE `id_customer` = 0 Always working fine. Anyway I wanted to show the status of this table/column before cleaning but using : SHOW TABLE STATUS FROM `ps_cart` WHERE `id_customer` = 0 It drops me #1054 - Unknown column 'id_customer' in 'where clause' What would be the correct syntax to show id_customer status using SHOW TABLE STATUS ? Thanks. Edited April 23, 2016 by JSSSX (see edit history) Link to comment Share on other sites More sharing options...
shokinro Posted April 23, 2016 Share Posted April 23, 2016 Show table status is used to display the status of tables, it is not used to display data of a specific table. SHOW TABLE STATUS FROM YourStoreDBName like '%cart%'; If you want to show the data of the cart table, please use SELECT * FROM ps_cart WHERE id_customer = 0 Link to comment Share on other sites More sharing options...
JSSSX Posted April 24, 2016 Author Share Posted April 24, 2016 Thank you for the quick reply. Regards, Link to comment Share on other sites More sharing options...
shokinro Posted April 24, 2016 Share Posted April 24, 2016 my pleasure, hope it helped. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now