Biblioteca Java - Rev 3

Subversion Repositories:
Rev:
Êþº¾.|#lab/scd/db/jdbc10/TestModificaTabeljava/lang/Object<init>()VCode
LineNumberTableLocalVariableTablethis%Llab/scd/db/jdbc10/TestModificaTabel;main([Ljava/lang/String;)Vcom.mysql.jdbc.Driverjava/lang/ClassforName%(Ljava/lang/String;)Ljava/lang/Class;
5jdbc:mysql://localhost/testdb?user=root&password=rootjava/sql/DriverManager
getConnection)(Ljava/lang/String;)Ljava/sql/Connection;
java/lang/System outLjava/io/PrintStream;"#   !$$Conexiune la baza de date realizata.&java/io/PrintStream(println(Ljava/lang/String;)V*+
),java/sql/Connection.createStatement()Ljava/sql/Statement;01/2BUPDATE STOC SET PROD = 'prod modificat'WHERE PROD LIKE 'PRODUS A';4java/sql/Statement6
executeUpdate(Ljava/lang/String;)I897:SELECT * FROM STOC;<executeQuery((Ljava/lang/String;)Ljava/sql/ResultSet;>?7@PRODBjava/sql/ResultSetD   getString&(Ljava/lang/String;)Ljava/lang/String;FGEHPRETJgetIntL9EMjava/lang/StringBufferOProdus:Q+
PSappend,(Ljava/lang/String;)Ljava/lang/StringBuffer;UV
PW Pret:Y(I)Ljava/lang/StringBuffer;U[
P\toString()Ljava/lang/String;^_
P`next()ZbcEdjava/lang/ExceptionfprintStackTraceh
giargs[Ljava/lang/String;connLjava/sql/Connection;statLjava/sql/Statement;updateStringLjava/lang/String;rsLjava/sql/ResultSet;pnameppretIeLjava/lang/Exception;
SourceFileTestModificaTabel.java!/*·       ±

   -}¸W¸L²%'¶-+¹3M5N,-¹;W,=¹A:§:C¹I:K¹N6²%»PYR·T¶XZ¶X¶]¶a¶-¹ešÿ§L+¶j±wwg
> #%*&-0/30>1I2j/w5x6|9R}klkmn\opYqr0Gst>,urI!vwxxyz{