DBA > Job Interview Questions > Sybase Interview Questions and Answers

How do I bcp null dates in Sybase?

More DBA job interview questions and answers at http://dba.fyicenter.com/Interview-Questions/

(Continued from previous question...)

How do I bcp null dates in Sybase?

As long as there is nothing between the field delimiters in your data, a null will be entered. If there's a space, the value will be Jan 1, 1900.

You can use sed(1) to squeeze blanks out of fields:
sed -e 's/|[ ]*|/||/g' old_file > new_file

(Continued on next question...)

Other Job Interview Questions