Guest User

Untitled

a guest
Dec 12th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.17 KB | None | 0 0
  1. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[0] + " where cod=3";
  2. myCommand.ExecuteNonQuery();
  3. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[1] + " where cod=4";
  4. myCommand.ExecuteNonQuery();
  5. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[2] + " where cod=5";
  6. myCommand.ExecuteNonQuery();
  7. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[3] + " where cod=7";
  8. myCommand.ExecuteNonQuery();
  9. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[4] + " where cod=9";
  10. myCommand.ExecuteNonQuery();
  11. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[5] + " where cod=10";
  12. myCommand.ExecuteNonQuery();
  13. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[6] + " where cod=11";
  14. myCommand.ExecuteNonQuery();
  15. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[7] + " where cod=12";
  16. myCommand.ExecuteNonQuery();
  17. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[8] + " where cod=13";
  18. myCommand.ExecuteNonQuery();
  19. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[9] + " where cod=14";
  20. myCommand.ExecuteNonQuery();
  21. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[10] + " where cod=15";
  22. myCommand.ExecuteNonQuery();
  23. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[11] + " where cod=16";
  24. myCommand.ExecuteNonQuery();
  25. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[12] + " where cod=17";
  26. myCommand.ExecuteNonQuery();
  27. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[13] + " where cod=18";
  28. myCommand.ExecuteNonQuery();
  29. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[14] + " where cod=19";
  30. myCommand.ExecuteNonQuery();
  31. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[15] + " where cod=20";
  32. myCommand.ExecuteNonQuery();
  33. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[16] + " where cod=34";
  34. myCommand.ExecuteNonQuery();
  35. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[17] + " where cod=35";
  36. myCommand.ExecuteNonQuery();
  37. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[18] + " where cod=36";
  38. myCommand.ExecuteNonQuery();
  39. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[19] + " where cod=38";
  40. myCommand.ExecuteNonQuery();
  41. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[20] + " where cod=40";
  42. myCommand.ExecuteNonQuery();
  43. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[21] + " where cod=41";
  44. myCommand.ExecuteNonQuery();
  45. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[22] + " where cod=42";
  46. myCommand.ExecuteNonQuery();
  47. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[23] + " where cod=43";
  48. myCommand.ExecuteNonQuery();
  49. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[29] + " where cod=44";
  50. myCommand.ExecuteNonQuery();
  51. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[30] + " where cod=45";
  52. myCommand.ExecuteNonQuery();
  53. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[31] + " where cod=47";
  54. myCommand.ExecuteNonQuery();
  55. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[32] + " where cod=48";
  56. myCommand.ExecuteNonQuery();
  57. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[33] + " where cod=48";
  58. myCommand.ExecuteNonQuery();
  59. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[34] + " where cod=51";
  60. myCommand.ExecuteNonQuery();
  61. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[35] + " where cod=53";
  62. myCommand.ExecuteNonQuery();
  63. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[36] + " where cod=54";
  64. myCommand.ExecuteNonQuery();
  65. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[37] + " where cod=55";
  66. myCommand.ExecuteNonQuery();
  67. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[38] + " where cod=56";
  68. myCommand.ExecuteNonQuery();
  69. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[40] + " where cod=57";
  70. myCommand.ExecuteNonQuery();
  71. myCommand.CommandText = "UPDATE[Aux$] set Valor=" + resultados[41] + " where cod=58";
  72. myCommand.ExecuteNonQuery();
  73.  
  74. MyConnection = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0; Data Source='D:\Libroexcel.xlsx';Extended Properties='Excel 12.0'");
Add Comment
Please, Sign In to add comment