You are here: Problem Building Script with Int « MsSQL Server « IT news, forums, messages
Problem Building Script with Int

Posted by Mossy on 01/26/06 13:42

I am currently moving a table from a msSQL DB to a MySQL DB.

I am trying to build the bones of an insert statement by adding strings
to a select statement.

SELECT '(' + job_referenceno + ', ''' + job_title + ''', ''' +
job_category + ''', ''' + job_type + ''', ''' + job_location + ''', '''
+ job_duaration + ''', ' + job_salary + ', ''' + job_contactperson +
''', ' FROM JobDetails WHERE job_active = 1;

This works perfectly until I try and pull an int column from the Table.
When I add a column to the string that is INT the query returns 0 rows,
with no errors.

Can anyone help explain / overcome this?

Regards,

Tomas

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация