Expert Apache Cassandra Administration by Sam R. Alapati

Expert Apache Cassandra Administration by Sam R. Alapati

Author:Sam R. Alapati
Language: eng
Format: epub
ISBN: 9781484231265
Publisher: Apress, Berkeley, CA


You can’t use the INSERT statement to load data into a counter column; instead, you must use the UPDATE statement to both insert and modify a counter column’s values.

The following example shows how to create a counter column :

CREATE TABLE popular_count (

id UUID PRIMARY KEY,

popularity counter

);

Altering a Table

You can modify a table structure or its options by executing an ALTER TABLE statement. The ALTER TABLE statement allows you to do the following.You can change the type of a column, as shown here:

ALTER TABLE customers ALTER lastKnownAddress TYPE UUID;



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.