is as follows:
The Code is as follows:
Create procedure procedue_name
[@ Parameter data_type] [output]
[With] {recompile | encryption}
As
SQL _statement
Note:
Output: indicates that this parameter can be returned.
Recompile in [with] {recompile | encryption} indicates that each time this stored procedure is executed, it is re-compiled (by default, it is only c
MySQL study Note 3 index, stored procedure bitsCN.com
MySQL index classification: two storage types of indexes: B-tree index and HASH index. B-tree is the default index method. MySQL indexes include general indexes, Unique Indexes, full-text indexes, single-column indexes, multi-column indexes, and spatial indexes.
Note: only MyISAM data tables support full-text
1 --The transaction starts, and if there is a system error in the middle, roll back2 BEGINTRY3 BEGIN TRAN 4 --all scripts for stored procedures5 SELECT *6 from#raw_data7 WHEREId= @rowNo8 9 COMMIT TRAN Ten ENDTRY One BEGINCATCH A ROLLBACK TRAN - --System Error - INSERT intoStore_batch_import_templog the (Remark - ) -
' asmessage -
$
the
the --Cycle Start
the
the while @intCounter @intCountProperties
-
in begin
the
the --take the first record
About
the Select @spid =spid@bl =BL the
the from#tmp_lock_whowhereId= @intCounter
+
- begin
the
Bayi if @spid =0
the
the Select 'causing the database deadlock is:'+ CAST(@bl as VARCHAR(Ten))+ 'process number, which executes the following SQL syntax'
-
- Else
the
the Select 'process number spid:'+ CAST(@spid
synonymsSQL>Create for set_fixed_time; Synonym created. SQL>Grantexecute on to MyUser; Grant succeeded.This allows the average user to set the time.How the procedure executesOne of the points to note here is that the normal user myuser does not have alter system permissions, but can run procedure set_fixed_time This is because
where user_name = User_name_var;--Update STATISTICS--informix syntax like commit;--Submit--informix does not need to submit end sp_login_error_count;--End stored procedure--informix syntax (end procedure;)Oracle stored procedure executes as execute procedure_name or exec procedure_nameThe Informix stored procedure exe
','0.00','All Country','15-30','0', now (), now ()); - when 1 Then - INSERT intoyo_directory_country_shipping (Group_product_id,ship_method,ship_cost,ship_eachadd,ship_listcountry, -Delivery_time,show_order,created_time,update_time)VALUES(EntityId,' Standard','10.00','2.00','All Country','10-15','1', now (), now ()); in when 2 Then - INSERT intoyo_directory_country_shipping (Group_product_id,ship_method,ship_cost,ship_eachad
In fact, the method of invocation is relatively simple, mainly two types of stored procedures:1. Update type of stored procedure2. Query type of stored procedureHere's a look at the specific invocation method:1. Update type of stored procedureSp_insertaccount:CREATE PROCEDURE [dbo]. [Sp_insertaccount]--Add The parameters for the stored procedure here@Account_ID int,@Account_FirstName varchar (32),@Account_L
, release the Change method and Object D in the method;7. Execute the PRINT statement, when the stack is only the main method, and D points to the heap memory (0x0078), the address of the X is the value in step 5 of 4;8. Jump out of the main method and end the program.Let's look at the results:We can see from the results of the two codes that the results are exactly the same as our analysis.The process of basic data type parameters and reference data type parameters, then, is the process we anal
, Advanceinterfaceenum (' y ', ' n ') NOTNULLDEFAULT ' n ', listsurveyenum (' Y ', ' n ') NOTNULLDEFAULT ' y ',timeoutbigintunsignednotnull, Cookiedomainvarchar (255) notnull) [Size=3]default CHARACTER SET UTF8 COLLATE utf8_unicode_ci[/size]");2.mysql also has the so-called client-side code, that is, like MySQL fetch data, MySQL think should use what code to return, such as Apache PHP when fetching data in what encoding way to return, it is best to use Utf-8.Toss not clear, simply add mysql_quer
Operators and expressionsRelational operations= equals> Greater than>= greater than or equal to general operation + Plus-Minus* Multiply/except: = Assignment Number= = Relationship Number.. Range|| The use of the character connection assignment number isVarible: =value;Database assignments can be done by select, where the assigned variables are defined firstV_name varchar2 (20);Select name into V_name from table; Use of scopes1..8 = 1 to 8 logical operation is null empty valueBetween between the
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.