Sponsored Content
Top Forums Programming SQL: Alter existing bool after printing Post 302891365 by sea on Wednesday 5th of March 2014 09:41:56 AM
Old 03-05-2014
Misleaded from the first finding, it seems i had made too many unrequired changed while generating the command...

This one (from Oracle) helped me:
Code:
'SQL_NEW = "UPDATE customer SET name='Joe' WHERE customer_id=10;"        ' copied example
SQL_NEW = "UPDATE tblDataBuch SET Gedruckt=true WHERE Gedruckt=false;"  ' my changes

/solved

EDIT:
Thank you Franklin52, but that line results in a runtime error 3078 of VBA, allthough there is none (grammer-error) I see..

Last edited by sea; 03-05-2014 at 11:00 AM..
 

10 More Discussions You Might Find Interesting

1. AIX

Can't alter bootlist

Made a sysback tape backup on our 595 running 4.1.5 but when trying to do a restore discovered that rmt0 not in bootlist(s). Tried to alter both the normal and service bootlists but system wont respond to F7(commit). Erased the service boolist then tried alter again, same result. Now have... (2 Replies)
Discussion started by: mooshkie
2 Replies

2. Shell Programming and Scripting

folder existing and file existing

I want to look into a folder to see if there are any folders within it. If there are, I need to check inside each folder to see if it contains a .pdf file So If /myserver/myfolder/ contains a folder AND that folder conatins a .pdf file do X Else do Z I may have multiple folders and... (4 Replies)
Discussion started by: crowman
4 Replies

3. Solaris

Add existing user into an existing group

Pre: no gpasswd/adduser there is just usermod can be used, also there is no -a option for usermod. How should I add a user into a group? (4 Replies)
Discussion started by: a2156z
4 Replies

4. Shell Programming and Scripting

Need help in printing a sql query in perl

Hi All, I have the following sql query select abcd from udbadm.log where xyz='1'. I have 16k queries similar to this with different values for xyz. I want to print the values of 'abcd' for each row. I have the following perl code, but not sure how i can print that particular... (1 Reply)
Discussion started by: userscript
1 Replies

5. Shell Programming and Scripting

insert pipes for existing and non-existing records

I have a source file like this, L4058S462 34329094 F51010141TK1070000483L4058S462 34329094 0232384840 381892 182 5690 L4058S462 34329094 F51020141FIRST CLEARING, LLC A/C 3432-9094 L4058S462 34329094 F51030141JOHAN HOLMQVIST ... (1 Reply)
Discussion started by: saravanamr
1 Replies

6. Programming

Error message: invalid types 'bool...' (array problem)

Hello everyone. I'm stuck with an error message that neither I nor any of my computer science peeps can understand. The program I wrote is meant to be a simple decimal to binary converter, but with this message it's more complicated than I thought. Here's the code: #include <iostream>... (2 Replies)
Discussion started by: qf_woodfox
2 Replies

7. Programming

Error message: invalid types 'bool...' (array problem)

Hello everyone. I'm stuck with an error message that neither I nor any of my computer science peeps can understand. The program I wrote is meant to be a simple decimal to binary converter, but with this message it's more complicated than I thought. Here's the code: #include <iostream>... (3 Replies)
Discussion started by: qf_woodfox
3 Replies

8. Shell Programming and Scripting

Alter existing script to work with longer file name

I have this script: #!/bin/sh for file in "$@" do ext=${file##*.} base=${file%.*} num=${base##*v} zeroes=${num%%*} num=${num#$zeroes} #remove leading zeros, or it uses octal num=$((num+1)) base=${base%v*} new=$(printf... (4 Replies)
Discussion started by: scribling
4 Replies

9. UNIX and Linux Applications

SQL - how to alter info of a cell in table

Hello, I am newbie on mysql and trying to edit my database from terminal under linux. What I need to do is to change the information written in a cell in table. Let me explain what I tried: $ mysql -u mysqluser -p $ show databases; $ USE catalogue; $ show tables ; $ select * from... (2 Replies)
Discussion started by: baris35
2 Replies

10. Programming

Bool vs char * conversion

I have a problem at make step to install a downloaded package consisted of different programs. In file included from kcdbext.cc:16:0: kcdbext.h: In member function �char* kyotocabinet::IndexDB::get(const char*, size_t, size_t*)’: kcdbext.h:1281:14: error: cannot convert �bool’ to... (3 Replies)
Discussion started by: yifangt
3 Replies
Data::Phrasebook::SQL(3pm)				User Contributed Perl Documentation				Data::Phrasebook::SQL(3pm)

NAME
Data::Phrasebook::SQL - The SQL/DBI Phrasebook Model. SYNOPSIS
use Data::Phrasebook; use DBI; my $dbh = DBI->connect(...); my $book = Data::Phrasebook->new( class => 'SQL', dbh => $dbh, file => 'queries.txt', ); my $q = $book->query( 'find_author', { author => "Lance Parkin" }); while ( my $row = $q->fetchrow_hashref ) { print "He wrote $row->{title} "; } $q->finish; queries.txt: find_author=select title,author from books where author = :author DESCRIPTION
In order to make use of features like placeholders in DBI in conjunction with phrasebooks, it's helpful to have a phrasebook be somewhat more aware of how DBI operates. Thus, you get "Data::Phrasebook::SQL". "Data::Phrasebook::SQL" has knowledge of how DBI works and creates and executes your queries appropriately. CONSTRUCTOR
new Not to be accessed directly, but via the parent Data::Phrasebook, by specifying the class as SQL. Additional arguments to those described in Data::Phrasebook::Generic are: o "dbh" - a DBI database handle. METHODS
dbh Set, or get, the current DBI handle. query Constructs a Data::Phrasebook::SQL::Query object from a template. Takes at least one argument, this being the identifier for the query. The identifier is used as a key into the phrasebook "file". A second argument can be provided, which is an optional hashref of key to value mappings. If phrasebook has a YAML source looking much like the following: --- find_author: sql: select class,title,author from books where author = :author You could write: my $q = $book->query( 'find_author' ); OR my $q = $book->query( 'find_author', { author => 'Lance Parkin' } ); OR my $author = 'Lance Parkin'; my $q = $book->query( 'find_author', { author => $author, } ); # sql = select class,title,author from books where author = ? # args = 'Lance Parkin' In the above examples, the parameters are bound to the SQL using the bind parameters functionality. This is more efficient in most cases where the same SQL is reused with different values for fields. However, not all SQL statements just need to bind parameters, some may require the ability to replace parameters, such as a field list. --- find_author: sql: select :fields from books where author = :author my $q = $book->query( 'find_author', replace => { fields => 'class,title,author' }, bind => { author => 'Lance Parkin' } ); # sql = select class,title,author from books where author = ? # args = 'Lance Parkin' In all instances, if the SQL template requested does not exist or has no definition, then an error will be thrown. Consult Data::Phrasebook::SQL::Query for what you can then do with your returned object. For reference: the bind hashref argument, if it is given, is given to the query object's "order_args" and then "args" methods. SEE ALSO
Data::Phrasebook, Data::Phrasebook::Generic, Data::Phrasebook::SQL::Query. SUPPORT
Please see the README file. AUTHOR
Original author: Iain Campbell Truskett (16.07.1979 - 29.12.2003) Maintainer: Barbie <barbie@cpan.org> since January 2004. for Miss Barbell Productions <http://www.missbarbell.co.uk>. COPYRIGHT AND LICENSE
Copyright (C) 2003 Iain Truskett. Copyright (C) 2004-2010 Barbie for Miss Barbell Productions. This module is free software; you can redistribute it and/or modify it under the Artistic Licence v2. perl v5.10.1 2010-08-31 Data::Phrasebook::SQL(3pm)
All times are GMT -4. The time now is 03:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy