我想以此方式撰写查询:
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
中不存在
答案 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()