Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
alter
- Page 1
Re: Improve HAVING BY performance
Programming
Databases
2 Weeks Ago
by Biiim
… it & your benchmark indicates you don't have one:
ALTER
TABLE `products` ADD PRIMARY KEY(`ProductID`), ADD INDEX `Price` (`Price…
Re: Improve HAVING BY performance
Programming
Databases
2 Weeks Ago
by toneewa
I added your mentioned
alter
table index. Took 4.375 secs in MySQL Workbench. It …
Re: Online subission forms not sending emails of submitted info
Programming
Web Development
1 Month Ago
by Biiim
… "do something if it fails" you need to
alter
it a bit to something like: if(mail($to,$subject…
Re: alter table stored procedure...???...
Programming
Databases
15 Years Ago
by hollystyles
Alter
table can't take dynamic parameters. To do this you … varchar(50) = 0, @datatype varchar (50) = 0 AS set @tsql = '
ALTER
TABLE [' + @tablename + '] ADD [' + @columnname + '] ' + @datatype exec(@tsql) [/code…
Re: alter table stored procedure...???...
Programming
Databases
12 Years Ago
by triptikumbhat@g
ALTER
PROCEDURE insert_column -- Add the parameters for the stored procedure here @… nvarchar(50) SET @Colm = @columnname SET @type = @datatype SET @SQL = '
ALTER
TABLE test ADD '+@colm+' '+@type+' DEFAULT 0' EXEC sp_executesql @SQL…
Re: Alter tables and foreign keys
Programming
Databases
13 Years Ago
by tesuji
…booking table is created I run the script alterTable to
alter
the instructor table. Note: the alterPayee script runs fine… sql code except the most important script which do the
ALTER
TABLE .... You should consider: 1. All your table…really simpler to help you if you also post the
alter
statements! btw2, which column of instructor table should …
Alter tables and foreign keys
Programming
Databases
13 Years Ago
by ceyesuma
… the creation of tables and execution of
ALTER
TABLE resources in an Apache Derby Embedded db…is created I run the script alterTable to
alter
the instructor table. Note: the alterPayee script… table: createBookingTable [b] Error at : alterInstructor
ALTER
TABLE instructor ADD CONSTRAINT BOOK_NUM_FK foreign key(book_num) REFERENCES…
alter table
Programming
Databases
13 Years Ago
by dan_t
… some help. I don't understand how to do an
alter
table statement. I had a lab last week that used… NUMBER(10), F_rank VARCHAR2(4), F_pin NUMBER(4) ); --the
alter
statement
ALTER
TABLE FACULTY ADD CONSTRAINT Locid FOREIGN KEY (Locid) REFERENCES FACULTY…
Alter Every Table In A Database - How?
Programming
Web Development
13 Years Ago
by JBLDW
…= mysql_fetch_array($result)) { foreach ($row as $key => $table) { mysql_query("
ALTER
TABLE `$table` ENGINE = InnoDB"); echo $key . " => "… mysql_fetch_array($result)) { foreach ($row as $key => $table) { mysql_query("
ALTER
TABLE `$table` ENGINE = InnoDB"); echo $key . " => "…
Re: alter table stored procedure...???...
Programming
Databases
15 Years Ago
by GLT
… VARCHAR (50) = 0 AS DECLARE @tsql VARCHAR (200) SET @tsql = '
ALTER
TABLE [' + @TABLE_NAME + '] ADD [' + @columnname + '] ' + @datatype EXEC @…[/code] and getting the error:- [I]The name '
ALTER
TABLE [] ADD []' is not a valid identifier.[/I]… message:- [I]Could not find stored procedure '
ALTER
TABLE ADD'[/I] I must be doing something …
Re: alter table
Programming
Databases
13 Years Ago
by alit2002
Try
alter
table <table_name> modify (<column_name> <datatype>); or
alter
table <table_name> add (<column_name> <datatype>); Watch out though. If you have data in the column you cant reduce it's size only increase it. Alistair
alter table stored procedure...???...
Programming
Databases
15 Years Ago
by GLT
… ASP web application. The SQL Code for this is:- [code]
ALTER
TABLE tablename ADD COLUMN columnname columndatatype [/code] I have tried…) = 0, @columnname varchar(50) = 0, @datatype varchar (50) = 0 AS
ALTER
TABLE @tablename ADD COLUMN @columnname @datatype END [/code] when i…
Re: alter table stored procedure...???...
Programming
Databases
15 Years Ago
by GLT
… varchar (50) = 0 AS DECLARE @tsql varchar (200) SET @tsql = '
ALTER
TABLE [ '+@TABLE_NAME+'] ADD ['+@columnname+']' + @datatype EXEC(@tsql)[/code] I have… varchar (50) = 0 AS DECLARE @tsql varchar (200) SET @tsql = '
ALTER
TABLE [ '+@TABLE_NAME+'] ADD ['+@columnname+@datatype+']' EXEC(@tsql)[/code] and my…
Re: alter table stored procedure...???...
Programming
Databases
15 Years Ago
by hollystyles
… use this: Spot the difference: [code] --CORRECT CODE SET @tsql = '
ALTER
TABLE [' + @tablename + '] ADD [' + @columnname + '] ' + @datatype [/code] [code] --SYNTAX ERROR !!! SET…
Alter a function to use Recursion
Programming
Software Development
14 Years Ago
by gretty
… just learnt recursion & I thought I would try &
alter
some of my previous funtions to make them recursive, well… the 1st function I try to
alter
totally stumps me & I thought I understood recursion :P…
Alter column to set the auto increment value!!
Programming
Web Development
14 Years Ago
by Archana.K
… help to set this constraint in SQL !! Query:
Alter
table dbo.master
alter
column SNO int NOT NULL AUTO_INCREMENT; Error : Incorrect syntax…
Re: alter table
Programming
Databases
13 Years Ago
by debasisdas
What exactly you want to
alter
?
Re: Alter Every Table In A Database - How?
Programming
Web Development
13 Years Ago
by JBLDW
… = mysql_fetch_array($result)) { foreach ($row as $key => $table) { mysql_query("
ALTER
TABLE `$table` ENGINE = InnoDB"); echo $key . " => "…
Alter Table Editor window Not Coming up in Mysql Workbench!!!
Programming
Databases
13 Years Ago
by programmer12
My
Alter
Table Editor Window Not Coming Up in Mysql Workbench? PLEASE CAN SUM1 HELP ME! ^_^ My
Alter
Table Editor Window will Not open up.. Is there a way to make it open???? Im using Mysql Workbench Thanks!
Alter tables column before the first column
Programming
Databases
11 Years Ago
by sarathsshanker
In MySQL I wan't to
alter
a table to insert the new column before the first existing coloumn. Can someone tell me the command,as I only saw the AFTER keyword in
ALTER
.Also is it possible to do so in the first place?
Re: alter table stored procedure...???...
Programming
Databases
15 Years Ago
by hollystyles
… varchar (50) = 0 AS DECLARE @tsql varchar (200) SET @tsql = '
ALTER
TABLE [ '+@TABLE_NAME+'] ADD ['+@columnname+']' + @datatype SELECT @tsql [/code] OPen QueryAnalyser…
Re: alter table stored procedure...???...
Programming
Databases
15 Years Ago
by GLT
… VARCHAR (50) = 0 AS DECLARE @tsql VARCHAR (200) SET @tsql = '
ALTER
TABLE [ ' + @TABLE_NAME + '] ADD [ ' + @columnname + ' ] ' + @datatype SELECT @tsql [/code] and also…
Re: alter table stored procedure...???...
Programming
Databases
15 Years Ago
by GLT
… VARCHAR (50) = 0 AS DECLARE @tsql VARCHAR (200) SET @tsql = '
ALTER
TABLE ['+@TABLE_NAME+'] ADD ['+@columnname+']'+@datatype EXEC @tsql GO [/code] I…
Re: alter table stored procedure...???...
Programming
Databases
15 Years Ago
by hollystyles
(Holyl is now bald as a coot) I think [inlinecode]EXEC @tsql[/inlinecode] needs to be [inlinecode]EXEC(@tsql)[/inlinecode] with parenthesis. and getting the error:- The name '
ALTER
TABLE [] ADD []' is not a valid identifier. To me this means you're passing zero length strings for the @TABLE_NAME and @columnname parameters.
Re: alter table stored procedure...???...
Programming
Databases
15 Years Ago
by hanuman308
hi there i am getting the error Cannot
alter
table ' EP16SEP_MX_MNLD' because this table does not exist in database 'SIL_TESTDB'. whenever i try to execute the SP but table is actully exist in database
Re: Alter column to set the auto increment value!!
Programming
Web Development
14 Years Ago
by Renukavani
Either edit the column via table Structure panel, Or run the following SQL query: [CODE]
ALTER
TABLE 'workers' CHANGE 'id' SMALLINT( 5 ) UNSIGNED NOT NULL AUTO_INCREMENT [/CODE]
Re: Alter Table Editor window Not Coming up in Mysql Workbench!!!
Programming
Databases
13 Years Ago
by programmer12
Nah, I use to be able to Right Click the Table name and click
Alter
Table and the pop up window comes up... But for some odd reason it isn't coming up anymore. Is there a command button on the keyboard that can re open the window?
Re: Alter tables column before the first column
Programming
Databases
11 Years Ago
by pritaeas
http://dev.mysql.com/doc/refman/5.6/en/
alter
-table.html Use `FIRST`
alter table add column through Dreamweaver ... need to get this to work ASAP! :(
Programming
Web Development
15 Years Ago
by GLT
…("ADODB.Command") addcolumn.ActiveConnection = MM_Silverwingdatabase_STRING addcolumn.CommandText = "
ALTER
TABLE dbo.customer ADD newcolumn VarChar(50)" addcolumn.Execute…
Alter object properties in the array
Programming
Web Development
14 Years Ago
by ablitz
Greetings to all PHP gurus out there! Since I'm fairly new to php programming I have a question for you all. I have an array of objects, each object has a unique id property. What is the best way to
alter
some properties of that particular object?
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC