| |

VerySource

 Forgot password?
 Register
Search
View: 704|Reply: 3

How to display binary values

[Copy link]

2

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-5 18:30:01
| Show all posts |Read mode
I have a field with many numbers. I don't know what type to save into the database. Currently, I plan to save it in binary, but how can I restore it to text when it is read out?
Reply

Use magic Report

0

Threads

14

Posts

12.00

Credits

Newbie

Rank: 1

Credits
12.00

 China

Post time: 2020-1-6 02:42:01
| Show all posts
http://dotnet.aspx.cc/article/j9ubrver-l3vb-49m3-gou1-z6c2pvr6fz3k/read.aspx

--Save like this, of course, it can be restored after display
Reply

Use magic Report

0

Threads

211

Posts

108.00

Credits

Newbie

Rank: 1

Credits
108.00

 China

Post time: 2020-1-6 02:48:01
| Show all posts
Consider text, ntext
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-6 06:30:01
| Show all posts
Use cast to convert
select cast (field name as varchar) from tableA.
If you want to visit
select cast (field name as varchar) as name from tableA Then you can access name.
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