Re: select max
Posted by:
villy skov
Date: March 15, 2018 10:50AM
Thanks Phillip,
The post_id is bigint(20) unsigned [0]
And yes, i just copy the Quote from the Adminer :-(
But your code:
Quote
INSERT INTO wp_postmeta ( post_id, meta_key, meta_value )
VALUES ( LAST_INSERT_ID(), '_wpsc_price', 122.2 );
also inserts a 0
if i run this:
Quote
INSERT INTO wp_postmeta ( post_id, meta_key, meta_value )
VALUES ( 2915, '_wpsc_price', 122.2 );
it works, so what would you suggest?
Subject
Written By
Posted
Re: select max
March 15, 2018 10:50AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.