| |

VerySource

 Forgot password?
 Register
Search
View: 2857|Reply: 15

Data view cannot display data

[Copy link]

2

Threads

12

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 Japan

Post time: 2020-1-5 17:20:01
| Show all posts |Read mode
Hello everyone, established a view, the code is as follows:
CREATE VIEW "(Untitled)"
    ("htbm",
      "htmc",
      "htje",
      "qyr",
      "lxdh",
      "qyrq",
      "gys",
      "xmmc",
      "fzbm",
      "fzr") AS
  SELECT "contract". "Htbm",
         "contract". "htmc",
         "contract". "htje",
         "contract". "qyr",
         "contract". "lxdh",
         "contract". "qyrq",
         "contract". "gys",
         "project". "xmmc",
         "project". "fzbm",
         "project". "fzr"
    FROM "contract",
         "project"
   WHERE ("contract". "Gsxm" = "project". "Xmbm")

After building, open this view, no data is displayed. There are data in the contract and project tables. Thank you!
Reply

Use magic Report

0

Threads

100

Posts

53.00

Credits

Newbie

Rank: 1

Credits
53.00

 China

Post time: 2020-1-6 03:12:01
| Show all posts
Is there any result by directly executing the following statement?
SELECT "contract". "Htbm",
"contract". "htmc",
"contract". "htje",
"contract". "qyr",
"contract". "lxdh",
"contract". "qyrq",
"contract". "gys",
"project". "xmmc",
"project". "fzbm",
"project". "fzr"
FROM "contract",
"project"
WHERE ("contract". "Gsxm" = "project". "Xmbm")
Reply

Use magic Report

2

Threads

12

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-1-6 07:06:01
| Show all posts
Brother, where to execute this statement
Reply

Use magic Report

0

Threads

100

Posts

53.00

Credits

Newbie

Rank: 1

Credits
53.00

 China

Post time: 2020-1-6 07:27:01
| Show all posts
What database do you use, Oracle?
Reply

Use magic Report

2

Threads

12

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-1-6 07:57:01
| Show all posts
ODBC brought by PB
Reply

Use magic Report

0

Threads

100

Posts

53.00

Credits

Newbie

Rank: 1

Credits
53.00

 China

Post time: 2020-1-6 08:18:01
| Show all posts
ASA?
Reply

Use magic Report

0

Threads

100

Posts

53.00

Credits

Newbie

Rank: 1

Credits
53.00

 China

Post time: 2020-1-6 08:42:01
| Show all posts
Take a look at it in the DataBase Painter / ISQL Session.
Reply

Use magic Report

2

Threads

12

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-1-6 08:51:01
| Show all posts
Yes, Thanks
Reply

Use magic Report

2

Threads

12

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

 Author| Post time: 2020-1-6 09:09:02
| Show all posts
Where is ISQL Session? I have opened DataBase Painter
Reply

Use magic Report

0

Threads

100

Posts

53.00

Credits

Newbie

Rank: 1

Credits
53.00

 China

Post time: 2020-1-6 09:18:01
| Show all posts
You look in the interface, it's a window.
It can also be opened by view / interactive sql.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list