MySql official manual Study Notes 3-MySql stored procedure introduction bitsCN.com
SELECT
Create procedure sp1 (x VARCHAR (5 ))//Create storage process
BEGIN
DECLARE xname VARCHAR (5) DEFAULT 'Bob ';//Declare local variables
DECLARE newname VARCHAR (5 );
DECLARE xid INT;
SELECT xname, id INTO newname, xid//Store the property value to the variable.
FROM table1 WHERE xname = xname;
SELECT newname;
END;
The
Android learning notes: internal storage of data; practice Data Reading and writing; storage to Cache for reading and writing; android learning notes
(1) directory structure
(2) Layout file:
(3) tool class for saving and reading data: FileService. java
Package com. example. data_storage_interal.file; import java.
execution. The ename value of the query is stored in the V_name, and Sal is placed in the V_sal and then displayed.3. Example 3 PL/SQL block with exception handlingDeclare v_name varchar2, v_sal number (7,2); Begin select Ename,sal into V_name,v_sal from EMP where empno=no; Dbms_output.put_line (' Employee Name: ' | |V_name); Dbms_output.put_line (' Salary: ' | | v_sal); Exceptionwhen No_data_found then Dbms_output.put_line (' input data wrong!‘);End
file to accommodate multiple resolutions whenever possible.
Iv. Other folders
materials (other files that need to be used in the project can be set up on their own, but this folder will not be packaged into the project, just as other auxiliary files for development convenience,
Android In addition to provide/res directory storage resource files, in the/assets directory will also provide storage resources files
Requirement: query the number of male or female. If the input value is 0, the number of male is obtained. If the input value is 1, the number of female is obtained.
Database Name mybatis database table users
createtableusers(idintprimarykeyauto_increment,namevarchar(10),sexchar(2));
Create a stored procedure
Delimiter $ create procedure mybatis. ges_user_count (in sex_id int, out user_count INT) begin if sex_id = 0 thenselect count (*) from mybatis.
1. Store the data in the collection into a text file case:Requirement: To store string data in the ArrayList collection into a text file?(1) Analysis:Through the meaning of the topic, we can know some of the following things,A string is stored in the ArrayList collection.Traverse the ArrayList collection to get the data.It is then stored in a text file.The text file description uses a character stream .(2)D
Android learning notes-Menu (2), android learning notes
Knowledge point:
This time, we will continue the learning of menus not finished in the previous article, Context Menu and pop-up menu ).
Context Menu
The Context Menu provides operations on specific items or context frameworks on the UI interface, just like
statements that refresh Members and label tablesExecute immediate vsql_mbrlabelproc;--Execute Generate Membership Tag statementFor code_cur in Code_cursor LOOPBeginV_code: = Code_cur.code;Select Fun_refresh_code (V_code) from dual;EndEND LOOP;--Call function to refresh--Refresh the existing tag view, follow the cursor query code, refresh each code materialized view once, and logExecute immediate vsql_mbrlabelviewproc;--Execute stored procedures to re
Android learning notes (Broadcast Mechanism) and android learning notes
1. Introduction to the broadcast mechanism of Android
Listening to a radio is also a kind of broadcast. There are many radio stations in the radio, and the content played by each radio station is differe
Old Deng's android Study Notes (2)-Android gets screen resolutions in N ways, android-android
Android gets the screen resolution
Method 1: the simplest method
12
intscreenWidth=getWindowManager().getDefaultDisplay().ge
Android cainiao study notes 16 ---- Android project package installation process (Run as Android Application), androidapplication
Right-click the project name and Run as Android Appication,Android project package and Installation
;database=c:\book1.xls) ... [sheet1$] SELECT * from ExcelThere must be a field in the Book1.xls Sheet1 that corresponds to the Excel table, otherwise an error occurs.The above discusses how to use Transact-SQL for data import and export between several commonly used databases and the database. The ability to register other types of databases in SQL Server is also available in SQL Server, so that you can use the tables in these registered databases as you would with SQL Server database tables.EXE
Use of Menu level 1 Menu and level 2 Menu of Android learning notes, and android learning notes
(1) No changes have been made to the layout file.
(2) the code in the main. xml file under the res -- menu directory is as follows:
(3) In the string. xml file under the values directory:
(3) The MainActivity. java code
of the security Code and Code encapsulation provided by stored procedures, but ignore the impact of precompiled code. You can avoid the problem of not using the correct query plan, because you can ensure that a new schedule is created for a specific run. The method is to use the WITH RECOMPILE option.There are two ways to use this option:1. Can include with RECOMPILE at run time.EXEC Spmysproc ' 1/1/2004 ' with RECOMPILEThis tells SQL Server to disca
Android interface component does not follow the MVC architecture, and its design understanding is closer to the Web page. After all, the idea of architecture for Android applications stems from the concept of mashups in Web2.0.
From the operating mode, Android is a multi-tasking operating system, you can run multiple tasks at the same time, each task ha
Android notes, android learning notes
1. Do not pass the int value to the setText function of the textview control, because when you pass the int type, it will assume that it is a resource id.
The following error is reported: java. lang. runtimeException: Unable to start activity ComponentInfo {com. example. ndktest/
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.