private static String loadInsert(LoadConfiguration config, String prefix) {
		StringBuilder b = new StringBuilder();

		String name = config.getTable() + "_ext_" + prefix;

		b.append("INSERT INTO ");
		b.append(config.getTable());
		b.append(" SELECT ");
		if (StringUtils.hasText(config.getColumns())) {
			b.append(config.getColumns());
		}
		else {
			b.append("*");
		}
		b.append(" FROM ");
		b.append(name);

		return b.toString();
	}
Builds sql clause to load data into a database.

@param config
           Load configuration.
@param prefix
           Prefix for temporary resources.
@return
           the load DDL
extensions/spring-xd-extension-gpfdist/src/main/java/org/springframework/xd/greenplum/support/SqlUtils.java