Añadimos funcionalidad de remplazo de comillas simples
This commit is contained in:
Binary file not shown.
@@ -14,7 +14,7 @@ public class appPrincipal {
|
|||||||
String linea;
|
String linea;
|
||||||
while ((linea = bfr.readLine()) != null) {
|
while ((linea = bfr.readLine()) != null) {
|
||||||
if (!linea.startsWith("#")) {
|
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