public object like(string $columns, mixed $value)
数据库字段名称
模式匹配的内容
操作成功返回 Object, 失败返回 false
<?php // string(66) "[SQL] SELECT * FROM `test1` WHERE `user` LIKE ? [BVALUES] %asf%" use Asf\Db; $select = Db::QBS(); $select->cols() ->from('test1') ->like('user', '%asf%');
<?php // string(65) "[SQL] SELECT * FROM `test1` WHERE `user` LIKE ? [BVALUES] asf%" use Asf\Db; $select = Db::QBS(); $select->cols() ->from('test1') ->like('user', 'asf%');
<?php // string(65) "[SQL] SELECT * FROM `test1` WHERE `user` LIKE ? [BVALUES] %asf" use Asf\Db; $select = Db::QBS(); $select->cols() ->from('test1') ->like('user', '%asf');