質問するログイン新規登録

質問編集履歴

1

create table、insert tableのダブルクォーテーションを外しました

2021/08/01 06:22

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -17,23 +17,23 @@
17
17
 
18
18
  ```
19
19
  //データを取得するテーブル
20
- CREATE TABLE "manager" (
20
+ CREATE TABLE manager (
21
- "id" text,
21
+ id text,
22
- "first_name" text,
22
+ first_name text,
23
- "age" numeric,
23
+ age numeric,
24
- "tel" text
24
+ tel text
25
25
  );
26
26
 
27
- INSERT INTO "manager" ("id", "first_name", "age", "tel") VALUES
27
+ INSERT INTO manager (id, first_name, age, tel) VALUES
28
28
  ('1', '名字', 30, '090-9999-9999');
29
29
 
30
30
 
31
31
  //データを登録するテーブル
32
- CREATE TABLE "public"."test" (
32
+ CREATE TABLE test (
33
- "test1" text,
33
+ test1 text,
34
- "test2" text,
34
+ test2 text,
35
- "test_num" numeric,
35
+ test_num numeric,
36
- "test4" text
36
+ test4 text
37
37
  );
38
38
  ```
39
39
  - メインのファンクション