sql - Can't compare XXXX-XXXX integer format to text -


i have database have not created. in table tablea, there field fielda defined "long integer", , of values have format "0000-0000" (with other numbers different 0).

i have created table field fieldb, same kind of data of fielda tablea. need compare fieldb , fielda (where fielda = fieldb), can't.

i can't define fieldb "long integer" because can't input values "0000-0000". don't understand how guy created database managed in fielda.

if define "short text" , try "where fielda = fieldb", type mismatch error.

if define "short text" , try "where cstr(fielda) = fieldb" or "where str(fielda) = fieldb" no rows returned. not blank row, looks error.

i can't modify tablea change type of fielda string due irrelevant reasons.

any highly appreciated. thanks

create fieldb long , assign format: 0000-0000

you can enter, say, 75522 , displayed as: 0007-5522


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -