{"title":"DB Row Inserter","nodeType":"Sink","id":"*tn315-LS21k4-LxI","factoryName":"org.knime.database.node.io.insert2.DBInsert2NodeFactory","factoryId":"org.knime.database.node.io.insert2.DBInsert2NodeFactory","path":["DB","Read/Write"],"owner":"knime","ownerAccountId":"account:team:b5f0848f-496d-4e6a-b869-fa3532248db7","description":"<p><a href=\"https://en.wikipedia.org/wiki/Insert_%28SQL%29\" rel=\"ugc nofollow noopener noreferrer\">Inserts</a> data rows into the selected database table based on the values from the selected KNIME input table columns. All selected column names need to exactly match the column names within the database table. The column order of the KNIME table and the database table do not need to match.</p>\n        ","shortDescription":"Inserts rows in the database based on the values of the selected columns from the KNIME input table.","keywords":["database","db","insert","append"],"deprecated":false,"streamable":true,"tags":["DB","Read/Write","Streamable"],"icon":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3BpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDowYjM2YWM5Ny01ZWJhLTQwZTctOTE4OS1iYmU4ZDdkMGYyNGUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NEQzMEQ1OUU4RjgyMTFFNTg1NzhENEEzQzA5OUQ0MUMiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NEQzMEQ1OUQ4RjgyMTFFNTg1NzhENEEzQzA5OUQ0MUMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo1OTFCODgwQzgyMzcxMUU1QjA3NkE2NzlGMUIxMUMyOCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo1OTFCODgwRDgyMzcxMUU1QjA3NkE2NzlGMUIxMUMyOCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PlTpvdoAAACjSURBVHjaYmZgYLgNxI5ALALE94H4GwOJ4D8SBmlOoMQAEP5CimYmLGLdpLrgNxCfA+I+INZlIAMwkeBVgkAViFvxhBMGYATidCDWg0alJpI40Tajx8JbAvLoGIWzB4i1SPECCDQDcTgQy1IjEBmg4UESEABiOyBuBOLzpNgEC210Df+AmJncRPQDiEtIcQELEN8C4itAfByIlwHxM1IMAAgwAE+DM/1ZSTCHAAAAAElFTkSuQmCC","views":[],"inPorts":[{"objectClass":"org.knime.core.node.BufferedDataTable","color":"000000","dataType":"Table","optional":false,"name":"Data to insert into the database","description":"KNIME data table with the data rows to be inserted into the database."},{"objectClass":"org.knime.database.port.DBSessionPortObject","color":"cc005b","dataType":"DB Session","optional":false,"name":"DB Connection","description":"DB Connection to the database."}],"outPorts":[{"objectClass":"org.knime.core.node.BufferedDataTable","color":"000000","dataType":"Table","optional":false,"name":"Input Data with Insert Status","description":"Input KNIME data table with additional columns providing the number of affected rows in the database and warnings, if checked in the dialog."},{"objectClass":"org.knime.database.port.DBDataPortObject","color":"66002d","dataType":"DB Data","optional":false,"name":"DB Data","description":"DB Data referencing the selected database table."}],"dynInPorts":[],"dynOutPorts":[],"additionalSiteInformation":{"url":"https://update.knime.com/analytics-platform/5.12","trusted":true,"enabledByDefault":true,"name":"KNIME Analytics Platform 5.12 Update Site","version":"5.12.0"},"dialog":[{"sectionName":"Options","fields":[{"name":"Database name","description":"The name of the database (or catalogue) to use.","optional":false},{"name":"Schema name","description":"The optional database schema name.","optional":false},{"name":"Table name","description":"Name of the database table to insert into.","optional":false},{"name":"If a database error occurs","description":"The option allows you to change the behavior if a database error occurs.\n<ul><li><b>Fail</b> : The node will abort the execution and fail on errors.</li><li><b>Ignore</b> : The node will ignore errors.</li></ul>","optional":false},{"name":"Batch size","description":"Enter a number greater than 0 for the number of rows updated in one batch job. Entering 1 disables batch processing. This way only one row is processed at a time.","optional":false},{"name":"Columns to write (SET in SQL)","description":"Select the columns which should be merged in the database e.g. if a matching row exists the values of the selected columns are updated otherwise a new row is created and the values of the selected columns are inserted in to the corresponding database columns. The column names in the KNIME input table need to match the column names in corresponding database table. In SQL this is equivalent to the <i>SET</i> columns.","optional":false},{"name":"Append status column (to KNIME table)","description":"If selected, it adds an extra column to the output table. The status column is the number of rows affected by the SQL statement. A number greater than or equal to zero indicates that the command was processed successfully and is an update count giving the number of rows in the database that were affected by the command&#39;s execution. A value of 2 indicates that the command was processed successfully but that the number of rows affected is unknown.","optional":false},{"name":"Status column name","description":"Name of the new status column.","optional":false},{"name":"Append error column (to KNIME table)","description":"If selected, it adds an extra column to the output table. The error column shows a warning message, if any.","optional":false},{"name":"Error column name","description":"The name of the error column.","optional":false},{"name":"Disable DB Data output port","description":"Select this option to disable the DB Data output port and the execution of the metadata query at the end of the node execution which might cause problems with databases that do not support subqueries.","optional":false},{"name":"Name","description":"Columns that match the given name (or regular expression) and KNIME type will be mapped to the specified database type.\n<ul><li><b>Column selection type</b> : The option allows you to select how the column is matched.\n  <ul><li><b>Manual</b> : Use the exact name of the column</li><li><b>Regex</b> : Allow regex expressions to select multiple columns</li></ul></li><li><b>Column name</b> : The name or regex expression.</li><li><b>Source type</b> : Datatype to map from.</li><li><b>Mapping to</b> : SQL type to map to.</li></ul>","optional":false},{"name":"Type","description":"Columns that match the given KNIME type will be mapped to the specified database type.\n<ul><li><b>From type</b> : Datatype to map from.</li><li><b>To type</b> : SQL type to map to.</li></ul>","optional":false}]}],"links":[],"kudos":[],"kudosCount":0,"bundleInformation":{"bundleVersion":"5.12.0.v202606171318","bundleName":"KNIME database nodes","bundleSymbolicName":"org.knime.database.nodes","bundleVendor":"KNIME AG, Zurich, Switzerland","featureSymbolicName":"org.knime.features.database","featureName":"KNIME Database","featureVersion":"5.12.0.v202606171318","featureVendor":"KNIME AG, Zurich, Switzerland","extensionId":"*0mIkLShcIfCXS7Y-"},"frequentSuccessors":[]}
