Alarm Upgrade
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)
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários