SHOW 语句 执行 SHOW 语句 SHOW CATALOGS SHOW DATABASES SHOW TABLES SHOW VIEWS SHOW FUNCTIONS SHOW 语句 SHOW 语句用于列出所有的 catalog,或者列出当前 catalog 中所有的 database,或者列出当前 catalog 和当前 datab...
ADD COLUMN ADD INDEX ADMIN ALTER DATABASE ALTER TABLE ALTER USER ANALYZE TABLE BEGIN COMMIT CREATE DATABASE CREATE INDEX CREATE TABLE LIKE CREATE TABLE CREATE USER ...
Mixin语句 Mixin语句 可以通过 mixin 强制打开符号声明: proc create *[ T ](): ref T = # 这里没有重载'init',所以我们需要明确说明它是一个开放的符号: mixin init new result init result mixin 语句只在模板和泛型...
When语句 When语句 示例: when system . hostOS == "windows" : echo "running on Windows!" elif system . hostOS == "linux" : echo "running on Linux!" elif system . ho...
Case语句 Case语句 另一个分支的方法是case语句。case语句是多分支: let name = readLine ( stdin ) case name of "" : echo "Poor soul, you lost your name?" of "name" : echo "Very funny, ...