約62件1ページ目

Generates and executes an SQL INSERT statement for given model, fields, and values. Removes Identity (primary key) column from update data before returning to ...

2019/2/5 -Not an expert in Cake but there is a PHP syntax error in code, change ' meta_description.tag_id =$tag_id, to 'meta_description.tag_id ='.

SQL calls that you can't or don't want to make via other model methods can be made using the model's query() method (though this should only rarely be necessary) ...

This class represents a Relational database SQL Query. A query can be of different types like select, update, insert and delete.

The Sqlserver datasource depends on Microsoft's PHP extension called pdo_sqlsrv. This PHP Extension is not included in the base installation of PHP and must be ...

2019/7/9 -cakephpのヘルパーで作成するsql文って最初は凄くわかりにくいんですよね。 でも慣れると、これはこれで良いと思えるようになります。 ただ、cakePHP2系の ...

A.mysqlでは、update文では、一行も変更しなくても、SQL文としてエラーでなければ、$this->query($sql)の結果つまりPDOStatement->execute(...

A.option用配列にfieldsキーも設定して、ArticleのカラムリストとDetail側のカラムリストとを指定すれば、指定したカラムの情報が取得できます。 指定例 $option['fiel...

A.C#やJavaなら、ORMライブラリで一発なんだけど、php だとないんですねえ。頻出なのに。 LaravelにはそのものズバリのGrouoByがありますが、他はこうやって。 https:/...

This library is able to work with the following databases: MySQL; Postgres; SQLite; Microsoft SQL Server (2008 and above). The first thing you need to do when ...

2008/5/9 -At the core, CakePHP provides some clever ways to write queries by employing the find() and save() methods, yet in some cases it is just ...

2012/3/19 -CakePHP2.0でSQLのログを吐き出す方法 · 1. /lib/Cake/Model/Datasource/DatabaseにMysqlLog.phpを作る。 · 3 database.phpのconfigをいじる.

2015/7/9 -とくに独自SQLを書いたときに取得しようとするとなぜだか配列がいくつかに分かれてしまう。とくにASで別名したときなどに不便さを感じました。 CakePHP ...