यहाँ http://www.datastax.com/dev/blog/schema-in-cassandra-1-1
CREATE TABLE users (
id uuid PRIMARY KEY,
name varchar,
state varchar
);
मैं केवल 0.7.x का इस्तेमाल किया है Datastax वेबसाइट पर एक कैसेंड्रा 1.1 स्कीमा संबंधित ब्लॉग पोस्ट से एक CQL उदाहरण है जहां आप कुंजी के डेटा प्रकार निर्दिष्ट कर सकते हैं। निम्नलिखित 0.7.6 कैसंद्रा-क्ली से है "मदद मानें;" आदेश
assume <column_family> keys as <type>;
Assume one of the attributes (comparator, sub_comparator, validator or keys)
of the given column family to match specified type. Available types: bytes, integer, long, lexicaluuid, timeuuid, utf8, ascii.
स्रोत
2012-04-14 11:29:41