LessQL Like运算符

时间:2018-07-05 08:26:28

标签: php mysql pdo lessql

我想以此方式撰写查询:

public function actionCreate() {
    $tim = new PstkTim();
    $user = new User();

    if ($tim->load(Yii::$app->request->post())) {
        $tim->save();
        if($user->load(Yii::$app->request->post()))
        {
            $user->id = $tim->id;
            $user->save();
        }
        return $this->redirect(['view', 'id' => $tim->id]);
    } else {
        return $this->render('create', [
                    'tim' => $tim,
                    'user' => $user,                 
        ]);
    }
}

错误是:

  

PDOException:SQLSTATE [42S02]:       找不到基本表或视图:1146表'database_name.like'在/var/www/webapp/app/vendor/morris/lessql/src/LessQL/Database.php:117

中不存在

1 个答案:

答案 0 :(得分:0)

您可以通过procedure MyProcedure(sometext: PWideChar); cdecl; external DLL name 'SomeFunction'; procedure TForm1.Button1Click(Sender: TObject); var MyString: UnicodeString; begin MyString := Edit1.Text; MyProcedure(PWideChar(MyString)); end; 通话进行LIKE

where()