mysql> create table test1(id int primary key,name varchar(20),addr varchar(20))shardkey=id;Query OK,0 rows affected(0.15 sec)
insert field must contain a shardkey; otherwise, the statement will be rejected.mysql> insert into test1(id,name) VALUES(1,'test');Query OK,1 rows affected(0.08 sec)mysql> insert into test3(name,addr) values('example','shenzhen');ERROR 7013 (HY000): Proxy ERROR:get_shardkeys return error
mysql> select id from test1 where id=1;
delete field must contain a WHERE condition. We recommend that you include the shardkey in the WHERE condition.mysql> delete from test1 where id=1;Query OK, 1 row affected (0.02 sec)
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback