Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
関数を使用してテーブル列の最大長/サイズを取得するにはどうすればよいですか? たとえば、VARCHAR(25) 列のサイズを取得しようとしている場合、その特定の属性のコードで値「25」を取得したいと考えています。
$row = SomeModel::model()->find(); var_dump($row->getMetaData()->columns['someCol']->size);