MySQL Forums
Forum List  »  Newbie

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?

Options: ReplyQuote


Subject
Written By
Posted
March 15, 2018 01:17AM
March 15, 2018 05:41AM
Re: select max
March 15, 2018 10:50AM
March 15, 2018 12:21PM
March 16, 2018 12:51AM
March 16, 2018 10:15AM


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.