我得到這個錯誤試圖編譯: package main
import "fmt"
import "log"
import "github.com/gocql/gocql"
var (
name, sex string
age int
)
func main() {
// connect to the cluster
cluster := gocql.N
如何確保一個用戶插入不受其他用戶的影響? 像交易... 你結合使用批處理作業用IF NOT EXISTS? BEGIN UNLOGGED BATCH
INSERT INTO atable ("user1") value (10)
INSERT INTO atable ("user2") value (-10)
APPLY BATCH