alternative for stored procedure in mysql which can be altered -


1.) alternative stored procedure in mysql can altered rather drop , create again

2.) easy ways maintain database version creating log.sql files manually such example log.sql file

    alter table `ship`      change column `is_deleted` `is_deleted` int(11) null default 0 ;     drop procedure if exists `get_ship`;     delimiter ;;     create procedure `get_ship`(      )     begin      something;         end if;     end ;;     delimiter ; 

is there better , easy way create such sql log files,
have tried mysql workbench

just create stored procedures using create procedure command, alter them alter procedure. advantage of using alter procedure change stored procedure preserves access permissions, whereas create procedure doesn't. key difference between them alter procedure requires use of same encryption , recompile options original create procedure statement. if omit or change them when execute alter procedure, they'll omitted or changed permanently in actual procedure definition.

a procedure can contain valid transact-sql command except these: create default, create function, create proc, create rule, create schema, create trigger, create view, set showplan_text, , set showplan_all. these commands must reside in own command batches, and, therefore, can't part of stored procedure. procedures can create databases, tables, , indexes, not other procedures, defaults, functions, rules, schemas, triggers, or views

but u try out views in mysql u case


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -