Skip navigation links

MySQL Forums :: Partitioning :: I'm trying to range partition and i'm getting this error


Advanced Search

I'm trying to range partition and i'm getting this error
Posted by: john hango ()
Date: July 20, 2011 03:18AM

This is my table structure Id is my primary key and extra is where it incriminates the numbers.
+---------------------------+-------------------------------------+------+-----+---------------------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------------------------+-------------------------------------+------+-----+---------------------+----------------+
| id | bigint(20) | NO | PRI | NULL | auto_increment |
| itemname | varchar(255) | NO | | | |
| description | mediumblob | NO | | NULL | |
| picpath | varchar(255) | NO | | | |
| quantity | smallint(6) | NO | | 0 | |
| auctiontype | varchar(30) | NO | | | |
| bidstart | double(16,2) | NO | | 0.00 | |
| bidend | double(16,2) | NO | | NULL | |
| bidstart_original | double(16,2) | NO | | NULL | |
| rp | char(2) | NO | | | |
| rpvalue | double(16,2) | NO | | 0.00 | |
| bn | char(2) | NO | | | |
| bnvalue | double(16,2) | NO | | 0.00 | |
| bi | tinyint(4) | NO | | 0 | |
| bivalue | double(16,2) | NO | | 0.00 | |
| duration | int(255) | NO | | NULL | |
| country | varchar(100) | NO | MUL | | |
| zip | varchar(20) | NO | MUL | | |
| sc | char(2) | NO | | | |
| scint | char(2) | NO | | | |
| pm | text | NO | | NULL | |
| main_category | int(11) | NO | MUL | NULL | |
| category | int(11) | NO | MUL | 0 | |
| active | tinyint(4) | NO | MUL | 0 | |
| payment_status | varchar(20) | NO | | | |
| startdate | datetime | NO | MUL | 0000-00-00 00:00:00 | |
| enddate | datetime | NO | MUL | 0000-00-00 00:00:00 | |
| enddate_old | datetime | NO | | NULL | |
| closed | tinyint(4) | NO | MUL | 0 | |
| keywords | text | NO | MUL | NULL | |
| nrbids | int(11) | NO | MUL | 0 | |
| maxbid | double(16,2) | NO | MUL | 0.00 | |
| clicks | int(11) | NO | MUL | 0 | |
| ownerid | int(11) | NO | MUL | 0 | |
| hpfeat | char(2) | NO | MUL | N | |
| catfeat | char(2) | NO | MUL | N | |
| bolditem | char(2) | NO | MUL | N | |
| hlitem | char(2) | NO | MUL | N | |
| private | varchar(10) | NO | | 0 | |
| currency | varchar(100) | NO | | | |
| swapped | tinyint(4) | NO | | 0 | |
| postage_costs | text | NO | | NULL | |
| insurance | varchar(50) | NO | | | |
| type_service | text | NO | | NULL | |
| isswap | char(2) | NO | | N | |
| acceptdirectpayment | tinyint(4) | NO | | 0 | |
| directpaymentemail | varchar(255) | NO | | | |
| paidwithdirectpayment | tinyint(4) | NO | | 0 | |
| addlcategory | int(11) | NO | MUL | 0 | |
| deleted | tinyint(4) | NO | MUL | 0 | |
| amountpaid | double(16,2) | NO | | 0.00 | |
| paymentdate | int(11) | NO | | 0 | |
| processor | varchar(50) | NO | | | |
| shipping_details | mediumtext | NO | | NULL | |
| hpfeat_desc | varchar(255) | NO | | | |
| reserveoffer | double(16,2) | NO | | 0.00 | |
| rpwinner | int(11) | NO | | 0 | |
| listin | varchar(20) | NO | MUL | auction | |
| close_in_progress | tinyint(4) | NO | | 0 | |
| bid_in_progress | tinyint(4) | NO | | 0 | |
| bank_details | text | YES | | NULL | |
| accept_payment_systems | text | YES | | NULL | |
| apply_vat | tinyint(4) | NO | | 0 | |
| auto_relist | varchar(2) | NO | | N | |
| auto_relist_bids | varchar(2) | NO | | N | |
| endtime_type | enum('duration','customtime','lts') | NO | | duration | |
| videofile_path | varchar(255) | NO | | NULL | |
| approved | tinyint(4) | NO | | 0 | |
| count_in_progress | tinyint(4) | NO | | NULL | |
| listing_type | enum('full','quick') | NO | | full | |
| offer_active | tinyint(4) | NO | | NULL | |
| offer_range_min | double(16,2) | NO | | NULL | |
| offer_range_max | double(16,2) | NO | | NULL | |
| endauction_notification | tinyint(4) | NO | | NULL | |
| auto_relist_nb | int(11) | NO | | NULL | |
| nash_relist_status | tinyint(4) | NO | | 0 | |
| endreason | text | NO | | NULL | |
| counter_style | tinyint(4) | NO | | 1 | |
| iconit | varchar(4) | NO | | 000 | |
| isverify | char(2) | NO | MUL | Y | |
| template | smallint(6) | NO | | 0 | |
| main_region | varchar(255) | NO | MUL | NULL | |
| region_suburbs | varchar(255) | NO | MUL | NULL | |
| sc_insurance | varchar(50) | NO | | | |
| sc_type_service | text | NO | | NULL | |
| estimated_weight_lbs | varchar(50) | NO | | | |
| estimated_weight_oz | varchar(50) | NO | | | |
| package_size_length | varchar(50) | NO | | | |
| package_size_width | varchar(50) | NO | | | |
| package_size_height | varchar(50) | NO | | | |
| odd_shaped_package | char(2) | NO | | N | |
| handling_fee | varchar(50) | NO | | | |
| calculated | char(2) | NO | | N | |
| declVal | varchar(50) | NO | | 0 | |
| combine_shipp | char(2) | NO | | T | |
| subitemname | varchar(255) | NO | MUL | NULL | |
| item_price_discount | double(16,2) | NO | | NULL | |
| poweredbynbulker | tinyint(4) | NO | | 0 | |
| is_relisted | tinyint(4) | NO | | NULL | |
| nash_secondchanceoffer | tinyint(4) | NO | | 0 | |
| charity_gets | double(16,2) | NO | | NULL | |
| charity_id | int(11) | NO | MUL | NULL | |
| chacha | char(2) | NO | MUL | N | |
| item_pw_type | int(4) | NO | | NULL | |
| item_pw | varchar(30) | NO | | NULL | |
| postage_costs_ww | double(16,2) | NO | | NULL | |
| insurance_ww | varchar(50) | NO | | NULL | |
| combine_shipp_ww | char(2) | NO | | T | |
| type_service_ww | varchar(50) | NO | | NULL | |
| shipping_details_ww | mediumtext | NO | | NULL | |
| digdel_path | varchar(255) | NO | | NULL | |
| digdel_dl_nb | int(11) | NO | | NULL | |
| isgoodtillcanceled | tinyint(4) | NO | | 0 | |
| reserveadv_timelimit | int(11) | NO | | 0 | |
| is_shipped | tinyint(4) | NO | | 0 | |
| itemAddress | varchar(100) | NO | | NULL | |
| itemCity | varchar(100) | NO | | NULL | |
| itemState | varchar(100) | NO | | NULL | |
| is_bidder_coseller | int(4) | NO | | 0 | |
| is_fairwarning | tinyint(4) | NO | | 0 | |
| myfolder_id | int(11) | NO | | NULL | |
| reviews_nb | int(11) | NO | | NULL | |
| retail_price | double(16,2) | NO | | NULL | |
| ebay_post_cache | tinyint(4) | NO | | 0 | |
| ebay_item_link | text | NO | | NULL | |
| postage_costs_ww_specific | text | NO | | NULL | |
| postage_costs_ww_country | text | NO | | NULL | |
| pa_bidders | tinyint(4) | NO | | 0 | |
| return_policy | mediumtext | NO | | NULL | |
| return_policy_ww | mediumtext | NO | | NULL | |
| enlpicitem | char(2) | NO | MUL | N | |
| is_start_on_first_bid | tinyint(4) | NO | | 0 | |
| hpfeatplus | char(2) | NO | | N | |
| catfeatplus | char(2) | NO | | N | |
| list_till_sold | tinyint(4) | NO | | 0 | |
| immediatePayment | tinyint(4) | NO | | 0 | |
| crazy_auctiontype | tinyint(4) | NO | | 0 | |
| tax_amt | double(16,2) | NO | | 0.00 | |
| nbwatchers | int(11) | NO | | 0 | |
| forpickuponly | tinyint(4) | NO | | 0 | |
| is_escrow_item | tinyint(4) | NO | | 0 | |
| buyer_requirements | text | NO | | NULL | |
| isbn | varchar(20) | NO | | NULL | |
| upc | varchar(20) | NO | | NULL | |
| mpn | varchar(20) | NO | | NULL | |
| is_recurring_payment | tinyint(4) | NO | | 0 | |
| recurring_payment_cycle | int(4) | NO | | 0 | |
| bsas_domain_name | varchar(255) | NO | | NULL | |
| bsas_alexa_pr | varchar(255) | NO | | NULL | |
| bsas_google_pr | varchar(255) | NO | | NULL |


This is my partition attempt
ALTER TABLE yspnash_auctions PARTITION BY RANGE (extra) (PARTITION p0 VALUES LESS THAN (60000), PARTITION p1 VALUES LESS THAN (65000), PARTITION p2 VALUES LESS THAN (70000), PARTITON P3 VALUES LESS THAN (75000), PARTITION p4 VALUES LESS THAN (80000), PARTITON p5 VALUES LESS THAN (85000), PARTITION p6 VALUES LESS THAN (85000), PARTITION p7 VALUES LESS THAN (90000), PARTITION p8 VALUES LESS THAN (95000), PARTITION p9 VALUES LESS THAN MAXVALUE);

Heres the error in ssh
ALTER TABLE yspnash_auctions PARTITION BY RANGE (extra) (PARTITION p0 VALUES LESS THAN (60000), PARTITION p1 VALUES LESS THAN (65000), PARTITION p2 VALUES LESS THAN (70000), PARTITON P3 VALUES LESS THAN (75000), PARTITION p4 VALUES LESS THAN (80000), PARTITON p5 VALUES LESS THAN (85000), PARTITION p6 VALUES LESS THAN (85000), PARTITION p7 VALUES LESS THAN (90000), PARTITION p8 VALUES LESS THAN (95000), PARTITION p9 VALUES LESS THAN MAXVALUE);
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '+---------------------------+-------------------------------------+------+-----+' at line 1

Options: ReplyQuote


Subject Views Written By Posted
I'm trying to range partition and i'm getting this error 1842 john hango 07/20/2011 03:18AM
Re: I'm trying to range partition and i'm getting this error 831 john hango 07/20/2011 03:40AM
Re: I'm trying to range partition and i'm getting this error 969 Rick James 07/21/2011 10:37AM


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.