| |

VerySource

 Forgot password?
 Register
Search
View: 886|Reply: 5

How to judge the field in IMAGE format is empty?

[Copy link]

3

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-1-9 01:20:02
| Show all posts |Read mode
How to judge the field of IMAGE format is empty in MS-SQL? I use CRYSTAL for reports. If it is empty, it cannot be exported as a PDF file. If there are pictures, it can be exported as a PDF file. How can I solve it?
Reply

Use magic Report

0

Threads

60

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-1-14 11:54:01
| Show all posts
Is isdbnull feasible?
Reply

Use magic Report

0

Threads

15

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 Invalid IP Address

Post time: 2020-1-22 21:54:01
| Show all posts
datable.rows [0] ["fieldName"]. ToString (). Trim (). Length == 0 is empty.
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-24 01:00:01
| Show all posts
isnull (****) sql syntax
Reply

Use magic Report

0

Threads

73

Posts

27.00

Credits

Newbie

Rank: 1

Credits
27.00

 China

Post time: 2020-1-24 11:00:02
| Show all posts
select count (*) from yourtable where isnull (field name)
or:
select count (*) from yourtable where field name is null
Reply

Use magic Report

0

Threads

29

Posts

16.00

Credits

Newbie

Rank: 1

Credits
16.00

 China

Post time: 2020-1-24 15:27:01
| Show all posts
select field name from table where datalength (field name)> 0
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