SQL to SequoiaDB shell to PHP
SequoiaDB 巨杉数据库的查询用 json(bson)对象表示,下表以示例的形式展示 SQL 语句、SDB Shell 语句和 SequoiaDB PHP 驱动程序语法之间的对照关系。
SQL
SDB Shell
PHP Driver
insert into employee(a,b) values(1,-1)
db.sample.employee.insert({a:1,b:-1})
$employee->insert("{a:1,b:-1}")
select a,b from employee
db.sample.employee.find(null,{a:"",b:""})
$employee->find(NULL, '{a:"",b:""}&
文档