Unix Technical Forum

Re: problem migratin from ms sql

This is a discussion on Re: problem migratin from ms sql within the pgsql Novice forums, part of the PostgreSQL category; --> On Tue, Apr 19, 2005 at 05:35:05PM +0200, Bruno Depero wrote: > > create table #mytable( title_id char(6), total_money_made ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Novice

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 08:44 PM
Michael Fuhr
 
Posts: n/a
Default Re: problem migratin from ms sql

On Tue, Apr 19, 2005 at 05:35:05PM +0200, Bruno Depero wrote:
>
> create table #mytable( title_id char(6), total_money_made money ) insert
> into #mytable select title_id, total_money_made=sum( ytd_sales*price )
> from titles group by title_id select * from #mytable drop table #mytable
>
> Of course odbc driver for postgresql reports a syntax error due to the
> table name !


See "Identifiers and Key Words" in the "SQL Syntax" chapter of the
documentation, in particular the discussion of quoted identifiers.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:59 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com