この記事を三行にまとめると 次回辺り、どうでもいい記事を一度挟んどくか…… createする者と言えば創造主……つまり神だ! createdとmodifiedの機能を逆にしておくことだってできちゃう どもども、最近CakePHP3のことばっかり書いてるわたくしです。 あまり開発技術の記事ばかり続くのは嫌なんですけどね……だって、まるで俺が普段真面目にエンジニアとして活動しているみたいに誤解されちゃうじゃないか! 次回辺り、どうでもいい記事を一度挟んどくか……。 まあそれはさておき、えーと、今日はcreatedとmodifiedに関する話っす。 バージョン3に限らず、CakePHPを使っている人は、createdとかmodifiedっていうカラムをテーブルに作る機会があると思います。datetime型(date型でも良いんだっけ?)にしておくと、データをINSERTしたりUPDATEするとき
題名: SQLserverのtimestamp列を取得 著者: ゆうこ 日時: 2007/01/08 19:24:03 ID: 18704 この記事の返信元: (なし) この記事への返信: [18706] Re[1]: SQLserverのtimestamp列を取得 めだか 2007/01/09 11:45:23 [18707] Re[1]: SQLserverのtimestamp列を取得 なおこ(・∀・) 2007/01/09 13:02:45 ツリーを表示 環境/言語:[XP・Vb.Net・SQLserver2000] 分類:[.NET] いつもお世話になってます。 下記のストアドでTimeStamp列の値をListviewに表示したいのですが なかなか上手くできません。 TimeStampの値がSystem.Byte[]となってしまいます。 CbyteやToStringも試してみたの
MySQL 5.1.67環境です。 タイトルの通りなのですが、MySQLマニュアルのTIMESTAMPの説明を読んでみると、 NOT NULL制約に関して気になる記述がありました。 MySQLマニュアルのTIMESTAMPの説明 MySQL 5.1 リファレンスマニュアル (オンラインヘルプ) :: 6.3.1.1 TIMESTAMP の特性によると、 TIMESTAMP カラムはデフォルトで NOT NULL になっているため、NULL 値を含めることはできません。NULL を指定すると、現在のタイプスタンプが割り当てられます。 だそうです。 さらっと書いてるけど、NOT NULL制約がエラーチェックに使えないってことじゃないか。 実際、 MySQLのTIMESTAMPカラムをNOT NULLで定義しても、NULLのINSERT/UPDATEを実行すると現在時刻になってしまいます。 これ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く