473,386 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how can a change a column named 'population * 1.1' with oher name?

i cannot change column name "population * 1.1" with another name...
i try with alter modify, alter change.. nothing
i try puting the expression column in quotes..nothing..
i try all things..
Feb 4 '12 #1
1 1711
saurav
2
ok bro you want to change the column name with help of query so your solution is
here
first you create the one table
like
create table thug
(
name varchar(10),
address varchar(20),
)
now i want to change the column name like address from the table thug
please see this query
sp_rename 'thug.address',sammy
'thug.address' in this first is [table name.column name(where you want to change)]
sammy is new column name
Feb 17 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Mick White | last post by:
I inadvertantly named a field "in" mysql> select * from guestbook; +----+-------+-------+-----------------+----------------+ | id | fname | lname | comments | in |...
2
by: Isz | last post by:
Hi Group: I would like to know if it is possible to change the name of an attribute to something else. My setup is like this: I have serveral SQL tables that I nest and join so that it all...
1
by: pawel.pabich | last post by:
Hajo, is it possible to change all named entities to their numbers? For example: § to § ? Pawel
1
by: ibm_97 | last post by:
DB2 8.2 on AIX Hi, I'd like to change a column's name in a table which is part of replication. This column is identity column (generated always). 1. Since DB2 will drop and recreate the...
0
by: KAMALKV1 | last post by:
Suppose we have to change one of the directory name of asp.net project how we do it. Presently I can change in virtual directory and physical files but get compilation errors Thanks kamal
1
by: Ajay kumar choudhary | last post by:
how to dynamically change column width of a table in reporting services with asp.net.
4
by: Chris Botha | last post by:
The customer has a database with a column in a table named "System". I've been using this method for years now - create a dataset (an .xsd file) for the table. With a column named "System" in the...
1
by: olgagjor | last post by:
how can i change column in gridview with css in visual studio 2005. my table has 5 rows and 4 columns.if i want to change 3 rd column can i change entire column or i must change separately. because i...
1
by: GayatriPatil | last post by:
I need to maintain an array type structure with two column for path and name. The number of rows is not known. Can any one suggest any Generic Collections available
1
by: Ben Rendel | last post by:
Hi I'm trying to list all columns of tables having a column named 'ContactServiceID' The following code does not work error: Invalid object name 'sysobjects.name' use MSSmallBusiness...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.