Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Lahorem

    simple incrementing?

    Many thanks guys! certainly helped :)
  2. Lahorem

    simple incrementing?

    your right but this data is later processed up by a program further down the chain which requires it to be in a consecutive order hence the question. Thanks
  3. Lahorem

    simple incrementing?

    ok apologies .. i ll rephrase I basically want to reorder the id field so it goes like: 220 221 222 223 .... as apposed to what it is right now (see above). I am not sure how I can use an update or an alter command for this operation? Hope that clears it?
  4. Lahorem

    simple incrementing?

    I have a table with 4 rows.. id..xx..yy..zz.. now out of the 4000 rows, some data has been taken out in the middle..eg: 220 shares money casino 221 shares2 penny dollar 225 stock hello moto 229 sucks help me 230 etc eg iou I am slightly confused as to how I would go about sorting the...
  5. Lahorem

    EMACS not loading - error msg provided

    Hi guys . apologies for the delay in response: command: textfile /opt/bin/emacs Result: textfile: Command not found command: ldd /opt/bin/emacs Result: ldd: /opt/bin/emacs: unsupported or unknown file type command: ls -l /opt/bin/*emacs* Result: lrwxrwxrwx 1 root other 5...
  6. Lahorem

    how to see structure of a view

    select * from config where 1 = 0 That did it cheers!
  7. Lahorem

    how to see structure of a view

    As a newbie to sql, this question may be very basic but I have a view called 'config' and I would like to see which fields it is pulling out without running it (i.e Select * from config) Additionally I don't know where the .sql files are stored for this view. Lastly, i have tried sp_help...
  8. Lahorem

    EMACS not loading - error msg provided

    yes indeed. still the same error
  9. Lahorem

    EMACS not loading - error msg provided

    This is what I get /opt/bin/emacs Any ideas guys / girls?
  10. Lahorem

    keeping ids consecutive after removing data

    nop nop no worries finally figured it out cheers anyway :)
  11. Lahorem

    EMACS not loading - error msg provided

    Hi a newbie user to unix and have tried to load emacs using emm 'emacs' command I get this error and have no idea what it means Any ideas? Error msg: Error: 0EXEC cannot find executable for 'emacs' version '20.3.0.0' thanks in advance
  12. Lahorem

    cursor syntax - whats wrong?

    i don't actually have the rights to declare a perm. table hence I was using the # syntax to indicate a temp table. Thanks for the code simonchristieis but the first bit doesnt work for me :( chrissie1 Do you you mean alphabetical order?
  13. Lahorem

    cursor syntax - whats wrong?

    Hi - The cursor below is suppose to copy data from a perm. table into a temp. table then make changes to the data and copy it back into the perm. table Once in this temp table, I am trying to get the cursor to fill all gaps of column points as this column must be consecutive numbers. Currently...
  14. Lahorem

    keeping ids consecutive after removing data

    yes I agree id is a poor choice of name. Anyway thanks for that Simon but on running that all of the ids have the same number from where the deletion takes place so if i deleted id = 2 where type = type 1 then the rest of ids are turned into 3. Any ideas? :-s
  15. Lahorem

    keeping ids consecutive after removing data

    thanks for all your input guys / girls Something I should have mentioned before is that id field is not used to identify unique numbers, which is why I was asking what syntax could I use to delete and update to go through all the rows and update the ids field??? so to expand..there is a...
  16. Lahorem

    keeping ids consecutive after removing data

    Thanks for your input SimonSellick .. Though I am not sure how I can use delete and update to go through all the rows (around 3000 rows) and update the ids?
  17. Lahorem

    keeping ids consecutive after removing data

    I currently have a table where I have to remove the type1 data (see below) id type 1 type1 2 type1 3 type1 5 type1 7 type1 8 type2 11 type3 14 type2 15 type2 16 type2 17 type2 ... ..... Now I have removed the type1 data using update table statements but I need to have the...
  18. Lahorem

    .dat file row swap

    I have a .dat file that Iam accessing using unix / SQL: File format is: Row 1 Row2 Row3 Row4 x y w d x t w d x y w 5 I need to swap the data in row4 and row1 with each other .. the fields are defined as digits but of...

Part and Inventory Search

Back
Top