Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Null terminated

 
Pieter Jacobs
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

What does this mean:



Does it mean that if a field lenght is 32 (for instance), and the text I'm writing to the field is 10 characters long, that I have to fill the remaining 22 characters with nulls or " "s (22 spaces).

Ps: I understand it to be nulls, but when I open the DB file with a text editor, there are loads of "spaces" and not nulls?

Thanks,
Pieter

 
Roel De Nijs
Sheriff
Posts: 10763
148
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pieter,

Take a look here and here. And if you use the search engine you'll certainly find a bunch of threads about this issue.

Kind regards,
Roel
 
Pieter Jacobs
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Roel,

Cool thanks, dankie, danke, merci

Enjoy the evening,
Pieter
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!