Skip to content

where does woocommerce store orders?

I’m looking in the sql db and I can see something that resembles orders inside wp_posts . However, I would expect them to be inside the tables beginning with wp_woocommerce. Can anyone shed some light on this phenomenon? Cheers Answer In woocommerce orders are modelled as a custom post type so they are …

SQLite not selecting date

My SQlite database in my app stores the date in the format of yyyy-MM-dd HH:mm:ss. I want to query a transaction that happened on a certain month of a year but my code is not working : Answer After some research I discovered that for some reason I had to do some casting for it to work.

SQLite – How to perform COUNT() with a WHERE condition?

I have a products table with these fields: _id, product_name, priority and shelf_id. And I have a shelves table with these fields: _id and shelf_name. Currently, I have this SQL which returns a resultset showing the name of each shelf along with the number of products within each shelf: What I am trying to ac…

Oracle SQL query efficiency Improvement

I have a query which is never finishing (left running for over 24 hours and was still going). Now there isn’t a huge amount of data in each table so I can only assume it is the efficiency of the …

Table description in Sqlite expert database

How to get the table description in Sqlite Expert Professional? I tried: Desc Table_name exec sp_help Table_name sp_columns Table_name sp_help Table_name Execute sp_help Table_name All commands …