![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Database Database problems or need to ask a question? maybe something to do with sql injections or a database software question. Database topics cover MySQL, PostgreSQL, Oracle, SQL Server or anything else related to databases. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| in my table 'users', the column 'email' exists already I created a new colum 'login' and I would like to COPY the content of the email column INTO the login column for all existing users.... is it possible to do it in a console or should I write a piece of code to do it ? thanks for your advice joss | |||
| Advertisements |
| | #2 | ||
| Josselin wrote: > in my table 'users', the column 'email' exists already > > I created a new colum 'login' and I would like to COPY the content of > the email column INTO the login column for all existing users.... > > is it possible to do it in a console or should I write a piece of code > to do it ? > > thanks for your advice > > joss > Maybe UPDATE users SET login = email; -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== | |||
| | #3 | ||
| On 2007-06-23 13:36:38 +0200, Jerry Stuckle <jstucklex@attglobal.net> said: > Josselin wrote: >> in my table 'users', the column 'email' exists already >> >> I created a new colum 'login' and I would like to COPY the content of >> the email column INTO the login column for all existing users.... >> >> is it possible to do it in a console or should I write a piece of code >> to do it ? >> >> thanks for your advice >> >> joss >> > > Maybe > > UPDATE users SET login = email; thanks a lot ! that's it ... joss | |||
| Featured Websites | ||||
|
![]() |
| Tags: column, content, manually, modify |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| modify a field in all records of a table | Josselin | Database | 2 | 07-01-2007 9:33 PM |
| libmysql.dll modify help | rplobue@yahoo.com | Database | 1 | 07-01-2007 7:37 PM |
| How can I get just one row from selected column? | Leszek | Database | 7 | 07-01-2007 6:43 PM |
| Need to modify <IMG> tags! Help! | Milan | PHP | 1 | 07-01-2007 5:24 PM |
| Calculated column in a table? | Morten | Database | 0 | 06-26-2007 12:09 AM |
| Featured Websites | ||||
|