Is there a way to insert multiple values using single statement in sybase -


i have 200-300 values inserted in table. don't want write insert statement 200 times. there short way it? have tried

insert #nodes (nodes) values  ('100161'),('100164'),('102226'),('100143'),('108942'),('106922'),('108949'),('107191'), ('100098'),('107182'),('107193'),('98646'),('100102'),('100105'),('103044'),('103293'), ('103296'),('103297'),('104178'),('103018'),('104145'),('103017'),('103019'),('108991'), ('108995'),('109000'),('103020'),('102121'),('103021'),('106284'),('103951'),('100117'),('102872'), ('102873'),('100125'),('101582'),('102234'),('103027'),('103028'),('102225'),('101574'),('106964'), ('106969'),('108956'),('109719'),('101581'),('102346'),('106997'),('107028'),('107030'),('107031'), ('107070'),('102347'),('107083'),('107084'),('107085'),('107086'),('103633'),('107124'),('100191'), ('100172'),('100204'),('104148'),('104163'),('100190'),('107180'),('109849'),('109852'),('110047'), ('107473'),('107502'),('100091'),('100096'),('106265'),('108346'),('108222'),('109382'),('107814'), ('107823'),('108167'),('109359'),('100171'),('103300'),('108268'),('108300'),('108860'),('108982'), ('102342'),('102344'),('100089'),('108675'),('108880'),('109341'),('109875'),('109877'),('109884'), ('108854'),('101912'),('102829'),('103317'),('104323'),('104324'),('104389'),('107239'),('108271'), ('108273'),('108275'),('108277'),('108279'),('108872'),('108885'),('108957'),('108983'),('109878'), ('109148'),('109279'),('109399'),('109443'),('109922'),('103318'),('109448'),('109452'); 

bt doesn't seem work in sybase

assuming mean sybase ase: indeed, 'array insert' not supported. have individual insert-values single row. alternatively, define temporary table n columns , insert n values @ time, , afterwards run n insert-select statements move values temp table target table.


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -