मैं पिछले कुछ दिनों में कैसंद्रा का उपयोग कर रहा हूं। मैं इसके लिए PHPCassa लाइब्रेरी का उपयोग कर रहा हूँ।कैसंद्रा (सीक्यूएल) 'कहां' काम नहीं कर रहा है '0' काम नहीं कर रहा है
जब मैं निम्नलिखित कोड का उपयोग करने की कोशिश कर रहा हूं, तो यह सही तरीके से काम नहीं कर रहा है।
require_once('phpcassa/connection.php');
require_once "phpcassa/columnfamily.php";
// Create new ConnectionPool like you normally would
$pool = new ConnectionPool("newtest");
// Retrieve a raw connection from the ConnectionPool
$raw = $pool->get();
$rows = $raw->client->execute_cql_query("SELECT * FROM User WHERE KEY='phpqa'", cassandra_Compression::NONE);
echo "<pre>";
print_r($rows);
echo "<pre>";
// Return the connection to the pool so it may be used by other callers. Otherwise,
// the connection will be unavailable for use.
$pool->return_connection($raw);
unset($raw);
कुछ भी नहीं लौटने इसके, मैं भी निम्न प्रश्नों
$rows = $raw->client->execute_cql_query("SELECT * FROM User WHERE age='32'", cassandra_Compression::NONE);
$rows = $raw->client->execute_cql_query("SELECT * FROM User WHERE name='jack'", cassandra_Compression::NONE);
की कोशिश की है लेकिन जब मैं
$rows = $raw->client->execute_cql_query("SELECT * FROM User", cassandra_Compression::NONE);
सही जवाब दिया इसका कोशिश की, सभी पंक्तियों का प्रदर्शन किया। कृपया मुझे सलाह दें कि 'WHERE' का सही तरीके से उपयोग कैसे करें।
Keyspace विवरण
Strategy Class: org.apache.cassandra.locator.SimpleStrategy
Strategy Options: None
Replication Factor: 1
Ring
Start Token: 6064078270600954295
End Token: 6064078270600954295
Endpoints: 127.0.0.1
'उपयोगकर्ता पासवर्ड कुंजीपटल' का आउटपुट क्या है? – ethrbunny
'आयु' और 'नाम' अनुक्रमित हैं? – ethrbunny
नहीं, इसकी अनुक्रमित नहीं है। –