Añadimos funcionalidad de remplazo de comillas simples
This commit is contained in:
@@ -14,7 +14,7 @@ public class appPrincipal {
|
||||
String linea;
|
||||
while ((linea = bfr.readLine()) != null) {
|
||||
if (!linea.startsWith("#")) {
|
||||
System.out.println("INSERT INTO T_PAIS VALUES("+linea+");");
|
||||
System.out.println("INSERT INTO T_PAIS VALUES("+linea.replace('"', '\'')+");");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user