You are here: Re: Syntax to add records if primary key = list « MsSQL Server « IT news, forums, messages
Re: Syntax to add records if primary key = list

Posted by --CELKO-- on 09/30/13 11:27

>> Where do I begin? <<

Begin with the basics. Rows are not records; fields are not columns;
tables are not files. We do not write procedural code in SQL; it is a
HIGH LEVEL, declarative language. If you want to change things, you use
an UPDATE statement:

UPDATE Foobar
SET ...
WHERE foo_id IN (1,2,3,4,5);

Please post DDL, so that people do not have to guess what the keys,
constraints, Declarative Referential Integrity, data types, etc. in
your schema are. Sample data is also a good idea, along with clear
specifications. It is very hard to debug code when you do not let us
see it.

Please go to a site with SQL lessons; a newsgroup is a bad place to
learn SQL.

 

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

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