- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: MySQL in HP-UX, how to populate an INT Field w...
Operating System - HP-UX
1752728
Members
5749
Online
108789
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2005 07:55 AM
тАО05-09-2005 07:55 AM
I added a INT column named KNBO to an existing populated TABLE. I want to set the value/contents of the filed KBNO to be the record number or rowid.
How do I?
Many thanks!
How do I?
Many thanks!
Hakuna Matata.
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2005 08:35 PM
тАО05-09-2005 08:35 PM
Solution
to add a field as a rownum, it just has to be auto_increment in the definition. So change your field definition
ALTER TABLE `TABLE` CHANGE `KNBO ` INT NOT NULL AUTO_INCREMENT PRIMARY KEY
That's it!
The field has to be the primary key
Hope this helps!
ALTER TABLE `TABLE` CHANGE `KNBO ` INT NOT NULL AUTO_INCREMENT PRIMARY KEY
That's it!
The field has to be the primary key
Hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2005 10:01 PM
тАО05-09-2005 10:01 PM
Re: MySQL in HP-UX, how to populate an INT Field with ROWNUM/RECORDID Values?
Nelson,
see example at :
http://dev.mysql.com/doc/mysql/en/example-auto-increment.html
Regards
Jean-Luc
see example at :
http://dev.mysql.com/doc/mysql/en/example-auto-increment.html
Regards
Jean-Luc
fiat lux
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP