Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5540

kirkward on "Aggregating Usermeta From Blogs To Custom Table"

$
0
0

It still did not update the table.

I thought I had read somewhere that if the table defined the field types, then that would reset the datatype correctly once it was inserted.

The field types are:

Field 	Type
	sl_id     	mediumint(8)
	sl_store 	varchar(255)
	sl_address 	varchar(255)
	sl_address2 	varchar(255)
	sl_city 	varchar(255)
	sl_state 	varchar(255)
	sl_zip   	varchar(255)
	sl_country 	varchar(255)
	sl_latitude 	varchar(255)
	sl_longitude 	varchar(255)
	sl_tags 	mediumtext
	sl_description 	text
	sl_email 	varchar(255)
	sl_url  	varchar(255)
	sl_hours 	varchar(255)
	sl_phone 	varchar(255)
	sl_image 	varchar(255)
	sl_private 	varchar(1)
	sl_neat_title 	varchar(255)
	sl_linked_postid 	int(11)
	sl_pages_url 	varchar(255)
	sl_pages_on 	varchar(1)
	sl_lastupdated 	timestamp
	sl_fax  	varchar(255)
	sl_option_value 	longtext

Looking at this for the first time, I just noticed that the sl_id field is an autoincrement, which means that it is going to fail as soon as I try to insert something into that field. I was trying to use the blog number as a way of keeping the blogs and the maps in sync with the blogs.


Viewing all articles
Browse latest Browse all 5540

Trending Articles