| |

VerySource

 Forgot password?
 Register
Search
Author: nflssimon

About between and ~~~~~~~~ `

[Copy link]

3

Threads

10

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-1-24 22:09:01
| Show all posts
If the value of skqk is between daa091.jdds1 and daa091.jdds2, write I

This is possible, but you must first determine which record in the daa091 table and then replace daa091.jdds1, daa091.jdds2 with: select jdds1 from daa091 where ...
     select jdds2 from daa091 where ....
Reply

Use magic Report

0

Threads

13

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-2-7 01:15:01
| Show all posts
Between x and y, x, y are constants.
adoquery1.sql.add ('
update daa074 set skqk = `` i ''
from daa074 a
where daa074.elsyds> = (select daa091.jdds1 from daa074 where id = a.id) and daa074.elsyds <= (select daa091.jdds2 from daa074 where id = a.id)
');
The ID field is replaced with the key field of the table
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