incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Evans <eev...@acunu.com>
Subject Re: insert in cql
Date Wed, 11 Apr 2012 15:25:41 GMT
On Wed, Apr 11, 2012 at 5:20 AM, puneet loya <puneetloya@gmail.com> wrote:
> insert into users (KEY) values (512313);
>
> users is my column family and key is its only attribute..
>
> It is giving an error
> bad request : line 1:24 required (...)+ loop did not match anything at input
> ')'
>
> do you find any error here?

Yes.  KEY here is presumably the row key (aka PRIMARY KEY) and you
cannot store an otherwise empty row, you need at least one actual
column.

-- 
Eric Evans
Acunu | http://www.acunu.com | @acunu

Mime
View raw message