How to retrive data from MYSQL database beginner question
I need to know a method, on how to retrieve values from a MYSQL database. I finally managed to insert data to a MySql database using hibernate, with the help of google. but, i couldn't find any helpful article on google, on retrieving data, will some plzz help me, by directing me to a site that has sample codes ??
i am actually new to MYSql and Databases in java, so plzz do help me, i am lost here,,, :(
Oh, it's Hibernate. In the future, please use the forums at their own site.
Answers on how to use Hibernate are usually available in the excellent "Hibernate Reference Documentation" available here.
Similar Messages
-
How to display data from mySQL database as a graph?
I am working in DW, is there any function to insert graphs from recordset?
My webpage is in php, don't tell me i have to work in coldfusion in order to display my data from mySQL graphically.
Look at this link: http://www.adobe.com/devnet/coldfusion/articles/basic_chart.html -
How to retrive data from the database by using resultset metadata
Hi
I am very new to java programing.please help me anyone...
In my table 20 fields are there.I want to retrive those fields and put it into arraylist.and return the arraylist.
regards
guruFirst get Column count by using getColumnCount() method
Then Get The Column name by using getColumnName(int column)
By using column name You can retrieve values
eg:
String columeName=null;
int count = mymetadata.getColumnCount();
for(int i=1;i<=count;i++) {
columeName = getColumnName(i);
//Retrive values from resultset buy using columeName
} -
How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.
If the data is on a remote server (for example, PHP running on a web server, talking to a MySQL server) then you do this in an AIR application the same way you would do it with any Flex application (or ajax application, if you're building your AIR app in HTML/JS).
That's a broad answer, but in fact there are lots of ways to communicate between Flex and PHP. The most common and best in most cases is to use AMFPHP (http://amfphp.org/) or the new ZEND AMF support in the Zend Framework.
This page is a good starting point for learning about Flex and PHP communication:
http://www.adobe.com/devnet/flex/flex_php.html
Also, in Flash Builder 4 they've added a lot of remote-data-connection functionality, including a lot that's designed for PHP. Take a look at the Flash Builder 4 public beta for more on that: http://labs.adobe.com/technologies/flashbuilder4/ -
How to retrive data from database views or projection views
how to retrive data from database views or projection views
Hi chintam,
1. Very simple
2. Just like normal select statement.
3. Select * from VIEWNAME.
4. (Instead of the tablename, we just have to give the viewname)
regards,
amit m. -
How to fetch data from Mysql with SSL.
I am using jdk1.5 and mysql 5.0.
How to fetch data from Mysql with SSL
I am using url = jdbc:mysql://localhost/database?useSSL=true&requireSSL=true.
It shows error. how to fetchI have created certificate in mysql and checked in mysql.
mysql>\s
SSL: Cipher in use is DHE-RSA-AES256-SHA
but through ssl how to fetch data in java. -
How to extract data from oracle database directly in to bi7.0 (net weaver)
how to extract data from oracle database directly in to bi7.0 (net weaver)? is it something do with EDI? can anybody explain me in detail?
Thanks
YorkYou can use UDConnect to get from Oracle database in to BW
<b>Data Transfer with UD Connect -</b>
http://help.sap.com/saphelp_nw04/helpdata/en/78/ef1441a509064abee6ffd6f38278fd/content.htm
<b>Prerequisites</b>
You have installed the SAP WAS J2EE Engine with BI Java components. You can find more information on this in the SAP BW installation guide on the SAP Service Marketplace at service.sap.com/instguides.
Hope it Helps
Chetan
@CP.. -
HOW to retrive data from SAP Tabel
Hi Friends,
1)Can you please explain how to retrive data from SAP table(example AFRU).
2) we had requriment based on the qunatity , Product name and date we need to display KPI's .KPI is based no products manfactured per day with some conditions
Regards
SrikanthHi Udayan,
I want to retrive SAP Table data from xMII.can you please explain elabarately how to call "RFC_READ_TABLE" from xMII.
please do the needful
Thanks
Srikanth -
How to get data from MySQL into Analysis Services Tabular Model
Hi,
I have a problem with Analysis Services Tabular Model and MySQL ... I have to use several MySQL databases as a source of Tabuar Model ..
Is there any way to get connection working from Tabular Model to retrieve data from MySQL database. I have a situation that in MySQL server there is several databases with same schema, one for each customer. I have planned to join these customer databases
to one Tabular Model, create roles and users for each customer to query their data.
What do I have to do to get this working ?
PasiHi ,
In Tabular model out of the box there is no direct connectors available for MySQL. Please see the list of supported Data Sources
http://msdn.microsoft.com/en-us/library/gg492165.aspx
But i think if you can establish a ODBC connectivity with data source to MYSQL , you can use the ODBC connection to retrieve the data from MySQL. Please try this and post the results here if it is possible or not.
Best Regards Sorna -
How to retrive data from selected checkboxes with fieldnames
hi experts,
how to retrive data from selected checkboxes with fieldnames into another alv grid report.(here the fieldnames selected from table names is dynamically).
thankx in advance
rani.k.Hi,
Use user_command in the alv grid and then
do the follwoing code
FORM user_command1 USING lv_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
Declaration of local Variables
DATA : lv_ref1 TYPE REF TO cl_gui_alv_grid.
DATA lv_cnt TYPE i. "+INS SUHESH 12.07.2008
Check function code
CASE lv_ucomm.
WHEN 'ONLI'.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = lv_ref1.
CALL METHOD lv_ref1->check_changed_data.
now loop ur final internal table where check = 'X'.
now pass data to other internal table..Now the internal table will be having values that the user selcetd on the screen.
Hope this helps.
Regards,
Nagaraj -
How to retrive data from this inernal table
hi,
could u please explain clearly how to retrive the records from this structure
data: begin of itab.
include structure sflite.
data:end of itab.
how to retrive data from this structure could u plz give me a code with example.Hi,
TYPES: BEGIN OF struc1,
val1 TYPE c,
val2 TYPE c,
END OF struc1,
BEGIN OF struc2,
val type struc1,
val3 TYPE c,
val4 TYPE c,
END OF struc2.
DATA: l_f_str1 type struc1,
l_f_str2 type struc2.
START-OF-SELECTION.
l_f_str2-val-val2 = 'a'.
write : / l_f_str2-val-val2.
END-OF-SELECTION. -
How to retrive data from SAP Archive (from Cluster or Content Table)
Hi,
I am working on HR -ABAP where i have a scenario to retive employee photo and disaplay as output in smartforms.And these employee photo are stored in Cluster table SDOKCONT1 in SAP Archive Link (storage type - SAP System Database).
Anybody can tell me the way how to retrive data ( employee Photo ) from this cluster and display its output in smartform dynamically.
Regards,
Sourabh ShrivastavaHello Sourabh,
If I am not wrong, there are two parts two your query...
a) Data or Content Retrieval
b) Displaying Retrieved content
Here is my feedback
a) The Content can be Retrieved using the FM ARCHIV_GET_TABLE.
Pass the Archive Object, SAP Object and the SAP Object ID and based on the Connection table entries (TOA*), the underlying Content Repository (T-code OAC0) is determined and a request for synchronous retrieval is made to the Content Server.
b) Display of Retrieved content is normally done through dedicated viewers (Ex: Livelink Viewer) or front-end applications (Excel, Word) based on the Protocol (OAA3/OAA4) specified in the Content Reository Configuration. Hence, to my knowledge, you cannot display the content directly in the Smartform.
With Regards
Vijay Gajavalli -
How to fetch data from single database table using 2 internal tables.
Hi friends,
i am a new user of ABAP and also SDN.
i need a help.
i want to fetch data from one database table based on primary keys of 2 internal tables. how to put in where clause.
Thanks in advance.hii
refer to following code ..i hope it will help you
SELECT matnr " Material Number
FROM mara
INTO TABLE i_mara
WHERE matnr IN s_matnr.
IF i_mara[] IS NOT INITIAL.
SELECT matnr " Material Number
werks " Plants
prctr " Profit Center
FROM marc
INTO TABLE i_marc
FOR ALL ENTRIES IN i_mara
WHERE matnr = i_mara-matnr
AND werks IN s_werks.
ENDIF. " IF i_mara[] IS NOT INITIAL
i_output = i_marc.
IF i_marc[] IS NOT INITIAL.
SELECT matnr " Material Number
werks " Plants
lgort " Storage Location
FROM mard
INTO TABLE i_mard
FOR ALL ENTRIES IN i_marc
WHERE matnr EQ i_marc-matnr
AND werks EQ i_marc-werks
AND lgort IN s_lgort.
ENDIF. " IF i_mara[] IS NOT INITIAL
regards
twinkal -
Retriving data from oracle database
hi all,
i have connected to oracle database and i want retrieve data from that database.can u please give the procedure how to retrieve data and how to load it into info cubeHi,
You can use either DB connect or UD connect for extracting data from external database.
DB Connect:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2f0fea94-0501-0010-829c-d6b5c2ae5e40
UD Connect:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/58f4db47-0501-0010-a2bf-ff01b150fdff
Also please search in SDN, you will find lot of threads related to this topic.
regards,
Pruthvi R -
How to retrive data from SQL or any database.
Hi Experts,
I am integrating FTP, DATABASE and SAP R/3 system.
1. FTP system stores xml files processed by customer requesting account info.
2. Database system ( SQL/Oracle) consists of Details about Customer accounts.
3. Finally response ( Account info ) to be sent to SAP R/3 system (customer request and database response)
Scenario: Customer request regarding account info is stored as xml in FTP server. XI has to pick the xml file and retrieve the relevant data from Database (SQL / Oracle) and store the whole data in SAP R/3 System.
Please let me know which BAPI I need to use for this scenario..and if you could explain the steps involved for this scenario that will really helps me.
Thanks and Regards,
SunilI dont think there will be a separate bapi for this scenario.
Use file adapter to pickup the file, call the JDBC adapter in synchronous mode (call a Stored Procedure) and then call an RFC or proxy to push the data in to R3.
Refer and File to Jdbc and File to RFC scenarios. You might need to use BPM if you below SP14 on XI 3.0 I believe..!!
VJ
Maybe you are looking for
-
When i tried to update my apps in the app store, i coudn't update because of particular error is irritating me whenever i try to update..[There was an error in the app store please try again later.(20)] Any one suggest me how to fix this error soon.
-
Setting up a shared library for multiple accounts on the same machine
I am in idiot. I can't figure it out. This is exactly what I did. 1 - I set up multiple accounts on the computer. 1 for me and another for my wife. 2 - I loaded all the music into my account's public folder. 3 - I set the default folder in both hers
-
Control and playback of AS2 SWF playing in AS3 SWF?
Hi, I have a rather interesting techincal question: 1. For starters I have a main flash movie which was developed using AS3 code. It is a video player type flash movie set up to play SWF files including 4 selectable SWF segments. 2. However I have re
-
Report abuse against a specific user instead of just individual posts
Is it possible to implement a "Report Abuse" link against users instead of just individual postings? It would help in some places to stop people who post vast numbers of interview questions or such like across the forums. Gareth.
-
Airport connects but won't transfer data
I've got the latest macbook pro and it's been working flawlessly since release. However just today inexplicably Airport has stopped working. When I go to network diagnostics, under Network Status i get a Failed status for "Internet" and a Failed stat