差分

移動先: 案内検索

Tep3

19 バイト追加, 2022年2月24日 (木) 08:04
ListsのidをClientsのlist_idに入れる
\COPY (select properties.ie_id as id, categories.id as list_id from categories join properties on categories.id = properties.tiku_id where categories.jiin_id = 1 order by properties.ie_id asc) TO '/Users/jq/3tep_gomi/ie_id_list_id_1.csv' WITH CSV DELIMITER ',' FORCE QUOTE * NULL AS '' HEADER;
</pre>
* tep3_developmentデータベース内に作業用一時テーブルを作る Clientsのlist_idに上で抜き出したlist_idを入れるためtep3_developmentデータベース内に作業用一時テーブルを作る(後で削除) Clientsのlist_idに上で抜き出したlist_idを入れるため
<pre>
CREATE TABLE x_list_id (client_id int, list_id int);
UPDATE clients SET list_id = x_list_id.list_id FROM x_list_id WHERE clients.id = x_list_id.client_id;
</pre>
 
==== Categories ====
* とりあえず必要なカテゴリは少ないので手動入力 ひとつ入れると後はTepnote画面上から入力できる

案内メニュー