{"id":242,"date":"2023-02-22T17:19:57","date_gmt":"2023-02-22T16:19:57","guid":{"rendered":"http:\/\/www.sepchat.com\/SC\/?p=242"},"modified":"2023-02-23T14:53:30","modified_gmt":"2023-02-23T13:53:30","slug":"sql-controler-lexistence-dun-champ","status":"publish","type":"post","link":"http:\/\/www.sepchat.com\/SC\/index.php\/2023\/02\/22\/sql-controler-lexistence-dun-champ\/","title":{"rendered":"SQL\u00a0&#8211; Controler l&rsquo;existence d&rsquo;un champ"},"content":{"rendered":"\n<p>Pour contr\u00f4ler l&rsquo;existence d&rsquo;un champ dans un fichier DB2, il suffit de lancer la requ\u00eate SQL suivante :<\/p>\n\n\n\n<p>SELECT * FROM QSYS2\/SYSCOLUMNS WHERE TABLE_NAME = &lsquo;ADRES01PF&rsquo;&nbsp; AND&nbsp; COLUMN_NAME = &lsquo;IDADR&rsquo;&nbsp;&nbsp;&nbsp;<\/p>\n\n\n\n<p>Cette requ\u00eate permet de r\u00e9cup\u00e9rer aussi toute la description d&rsquo;un champ : Taille, type, libell\u00e9, &#8230;.<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized size-full has-custom-border\"><a href=\"sql\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.sepchat.com\/SC\/wp-content\/uploads\/2023\/02\/fleche-r-edited.png\" alt=\"\" width=\"57\" height=\"57\"\/><\/a><\/figure>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex\">\n<div class=\"wp-block-button is-style-outline\"><a class=\"wp-block-button__link wp-element-button\" style=\"border-radius:100px\">Cet article vous a \u00e9t\u00e9 utile ? N\u2019h\u00e9sitez pas \u00e0 le partager.<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Pour contr\u00f4ler l&rsquo;existence d&rsquo;un champ dans un fichier DB2, il suffit de lancer la requ\u00eate SQL suivante : SELECT * FROM QSYS2\/SYSCOLUMNS WHERE TABLE_NAME = &lsquo;ADRES01PF&rsquo;&nbsp; AND&nbsp; COLUMN_NAME = &lsquo;IDADR&rsquo;&nbsp;&nbsp;&nbsp; Cette requ\u00eate permet de r\u00e9cup\u00e9rer aussi toute la description d&rsquo;un champ : Taille, type, libell\u00e9, &#8230;.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8],"tags":[],"_links":{"self":[{"href":"http:\/\/www.sepchat.com\/SC\/index.php\/wp-json\/wp\/v2\/posts\/242"}],"collection":[{"href":"http:\/\/www.sepchat.com\/SC\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.sepchat.com\/SC\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.sepchat.com\/SC\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.sepchat.com\/SC\/index.php\/wp-json\/wp\/v2\/comments?post=242"}],"version-history":[{"count":3,"href":"http:\/\/www.sepchat.com\/SC\/index.php\/wp-json\/wp\/v2\/posts\/242\/revisions"}],"predecessor-version":[{"id":316,"href":"http:\/\/www.sepchat.com\/SC\/index.php\/wp-json\/wp\/v2\/posts\/242\/revisions\/316"}],"wp:attachment":[{"href":"http:\/\/www.sepchat.com\/SC\/index.php\/wp-json\/wp\/v2\/media?parent=242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.sepchat.com\/SC\/index.php\/wp-json\/wp\/v2\/categories?post=242"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.sepchat.com\/SC\/index.php\/wp-json\/wp\/v2\/tags?post=242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}