How to merge with multiple updates

Hi All,
can someone help with merge and multiple updates when matched ?
create table foo
id number,
name varchar2(30),
col1 date,
col2 date
create table bar
id number,
name varchar2(30),
col1 date,
col2 date
insert into foo values ( 1, 'test1', sysdate + 30, sysdate);
insert into foo values ( 2, 'test2', sysdate + 30, sysdate);
insert into foo values ( 3, 'test3', sysdate + 30, sysdate);
MERGE INTO BAR T1
USING (SELECT id, NAME, col1, col2 FROM foo) T2
ON (T1.id = T2.id)
WHEN MATCHED THEN
UPDATE SET T1.NAME=T2.NAME where T1.Name != T2.Name
UPDATE SET T1.col1=T2.col1 where T1.col1 != T2.col1
UPDATE SET T1.col2=T2.col2 where T1.col2 != T2.col2
WHEN NOT MATCHED THEN
INSERT (ID, NAME, col1, col2 ) VALUES (t2.Id, t2.NAME, t2.col1, t2.col2);
Reason for having multiple updates to same row is i want to update the column only if name, col1, and col2 columns have changed. So, I want to first match by rows and then update the columns in bar that have changed in foo.
Any thoughts on how I might do this in merge ?. I get the foll. error
ERROR at line 6:
ORA-00933: SQL command not properly ended
Thanks
Vissu

I think you will be better off reading this link.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9016.htm#SQLRF01606
It will be something like this.
MERGE INTO BAR T1
USING (SELECT id, NAME, col1, col2 FROM foo) T2
ON (T1.id = T2.id)
WHEN MATCHED THEN
UPDATE SET T1.NAME=T2.NAME ,
                      t1.col1 = t2.col2 ,
                      t1.col2 = t2.col2
where T1.Name != T2.Name or t1.col1 != T2.col1 or t1.col2 != t2.col2
WHEN NOT MATCHED THEN
INSERT (ID, NAME, col1, col2 ) VALUES (t2.Id, t2.NAME, t2.col1, t2.col2);Please note this code is untested.
Regards
Raj

Similar Messages

  • How to deal with multiple disk path's

    hi
    i'm setting up a new server with virtual servers with extra io domain's
    now i have a question on how to deal with multiple disk path's
    so following questions:
    - can i enable multipath on the primary and on the alternate domain?
    i tried this but when rebooting the alternate the alternate keep's freezing and the only solution is to hard stop it and it's depending host
    - if i can't enable multipathing how to handle this
    for example a disk has on the primary domain 4 path's to a disk
    do  i then assign all 4 path's to a virtual disk server or do i create a virtual disk server per path
    if i do the first is adding all the path to the same mpgroup enough or not

    Hello
    1.-can i enable multipath on the primary and on the alternate domain?  Yes. i understand for multipath mpxio or similar.
    2.-i tried this but when rebooting the alternate the alternate keep's freezing and the only solution is to hard stop it and it's depending host
    if you are going to use alternate domain you have to give this IO the all bus root nexus, what you describe sounds like DIO,
    3.- - if i can't enable multipathing how to handle this for example a disk has on the primary domain 4 path's to a disk
    If you have 4 path to the same disk in the primary and you are using multipath let's say mpxio, then you will have only one disk in the primary, which is a virtual device that handle the 4 paths.  That's is what you have to use in a vds.
    Please check this doc to see the best practice to ldom
    white-paper-ldom
    regards
    eze

  • Tip for Data Merge with Multiple Records (labels, etc.)

    I have seen many InDesign Data Merge questions about how to create sheets of mailing labels, especially the problem of getting only one label per page, when you need 30 or more.
    Adobe's instructions are poor and incomplete in that InDesign doesn't step out the records from a data source - it steps out the FRAMES that contain the data field placeholders.
    That is why you only need to place a text or image frame once on a single page - during the datamerge, InDesign will create the additional FRAMES for each record, and it will create the pages required to hold them.
    You do have to set the desired spacing on the
    If you create the frame on a Master page, ID allows you to update the data source (when it changes) in the Data Merge tool panel.
    These are very nice and robust features, but the documentation for them is confusing to many people.
    You will find more great in-depth help  for Data Merge, with screen captures and attachments, here in the forum.

    For a multiple record merge you need one set of placeholders, then set the margins and spacing in the merge options so the positioning is correct.
    Warning: Using Preview in a multiple record merge will corrupt the file. If you press the preview button, Undo after looking at the preview, then merge without using preview.

  • How to sync with multiple computers?

    I have my iTunes library on my MacBook and all of my Apple devices synced accordingly. My family also has an iMac, and I would like other family members to be able to sync from the iMac. I know I can use Home Sharing to allow the iMac to view/play the music when my Macbook is active on the network. I also know I can purchase iTunes Match so I can access the music when my MacBook is offline and edit the playlists. Yet, I would love to be able to set up the iMac so the iDevices could actually by synced with that computer as opposed to mine. How can I go about this?

    Yes, you can sync your device with multiple computers.  Only that one is set to AUTO SYNC whilst the rest is set to "MANUALLY MANAGE MUSIC".
    Refer to this article:
    Using iPhone, iPad, or iPod with multiple computers
    http://support.apple.com/kb/HT1202
    However, issues may occur leading to data corruption or data loss if you regularly sync Contacts, Calendars, Notes, or bookmarks between multiple computers using iTunes and your iOS device. Syncing once to move your data to a new computer should not cause these issues.
    Refer to this article:
    iOS: Issues syncing content with multiple computers using iTunes
    http://support.apple.com/kb/TS1474

  • How to search with multiple constraints in the new java API?

    I'm having a problem using the new MDM API to do searches with multiple constraints.  Here are the classes I'm trying to use, and the scenario I'm trying to implement:
    Classes:
    SearchItem: Interface
    SearchGroup: implements SearchItem, empty constructor,
                 addSearchItem (requires SearchDimension and SearchConstraint, or just a SearchItem),
                 setComparisonOperator
    SearchParameter: implements SearchItem, constructor requires SearchDimension and SearchConstraint objects
    Search: extends SearchGroup, constructor requires TableId object
    RetrieveLimitedRecordsCommand: setSearch method requires Search object
    FieldDimension: constructor requires FieldId object or FieldIds[] fieldPath
    TextSearchConstraint: constructor requires string value and int comparisonOperator(enum)
    BooleanSearchConstraint: constructor requires boolean value
    Scenario:
    Okay, so say we have a main table, Products.  We want to search the table for the following:
    field IsActive = true
    field ProductColor = red or blue or green
    So the question is how to build this search with the above classes?  Everything I've tried so far results in the following error:
    Exception in thread "main" java.lang.UnsupportedOperationException: Search group nesting is currently not supported.
         at com.sap.mdm.search.SearchGroup.addSearchItem(Unknown Source)
    I can do just the ProductColor search like this:
    Search mySearch = new Search(<Products TableId>);
    mySearch.setComparisonOperator(Search.OR_OPERATOR);
    FieldDimension myColorFieldDim = new FieldDimension(<ProductColor FieldId>);
    TextSearchConstraint myTextConRed = new TextSearchConstraint("red",TextSearchConstraint.EQUALS);
    TextSearchConstraint myTextConBlue = new TextSearchConstraint("blue",TextSearchConstraint.EQUALS);
    TextSearchConstraint myTextConGreen = new TextSearchConstraint("green",TextSearchConstraint.EQUALS);
    mySearch.addSearchItem(myColorFieldDim,myTextConRed);
    mySearch.addSearchItem(myColorFieldDim,myTextConBlue);
    mySearch.addSearchItem(myColorFieldDim,myTextConGreen);
    the question is how do I add the AND of the BooleanSearchConstraint?
    FieldDimension myActiveFieldDim = new FieldDimension(<IsActive FieldId>);
    BooleanSearchConstraint myBoolCon = new BooleanSearchConstraint(true);
    I can't just add it to mySearch because mySearch is using OR operator, so it would return ALL of the Products records that match IsActive = true.  I tried creating a higher level Search object like this:
    Search topSearch = new Search(<Products TableId>);
    topSearch.setComparisonOperator(Search.AND_OPERATOR);
    topSearch.addSearchItem(mySearch);
    topSearch.addSearchItem(myActiveFieldDim,myBoolCon);
    But when I do this I get the above "Search group nesting is currently not supported" error.  Does that mean this kind of search cannot be done with the new MDM API?

    I'm actually testing a pre-release of SP05 right now, and it still is not functional.  The best that can be done is to use a PickListSearchConstraint to act as an OR within a field.  But PickList is limited to lookup Id values, text attribute values, numeric attribute values and coupled attribute values.  It works for me in some cases where I have lookup Id values, but not in other cases where the users want to search on multiple text values within a single field.

  • How to deal with multiple language SQL script?

    Hi All,
    We now want to create a SQL script that contains multiple languages(English, Chinese, Japanese), this script need to be run at there different database installed on different OS, for example, Oracle9i on Windows 2000 English Edition/Chinese Edition/Japanese Edition.
    If I save the file as ANSI format, this file will only be recognized at local OS(e.g. the Chinese and Japanese character will not be normally displayed on other OS, if I run the script, the CH/JP characters will not be stored normally in DB).
    If I save the file as Unicode format, this file can be recognized by all three OS, but Oracle SQL Plus will not recognize it, thus we can't run the script.
    Who can tell me how to deal with this issue? Is it possible to save only one script that can run on different language OS?
    Thanks,
    Spark

    Hi,
    The ISQLplus supports multiple languages, but there will be following problems for my case:
    1.ISQLplus don't support Unicode format script too, so I must save the file as ANSI format.
    2.To display the characters normally depends on the database server's platform. I create a script contain three languages with ANSI format in Chinese OS, but if I want to load this script to database server installed on English OS via ISQLplus, the Chinese characters will not be displayed normally too.
    PS:
    So, I think this is not only related with Oracle but also the Windows OS, it is hard to create one file with ANSI format that can be displayed normally in different platforms.
    Thank you all the same,
    Spark

  • How to filter with multiple selection on a single column on external list, currently only one filter per column is available.

    I have external list where i want to apply multiple filter for every column like we do in Excel spreadsheet - we can filter a spreadsheet column by selecting multiple checkbox for every  column. I am using Sharepoint 2010
    Is this possible in sharepoint 2010? Any idea how to acheive that?
    Thanks in advance.

    Hi Rahul,
    According to your description, my understanding is that you want to use filter with multiple values on a column of an external list in SharePoint 2010.
    Per my knowledge, there is not an OOB way to achieve it. As a workaround, you can custom the web part to implement it. There is an articles for your reference:
    http://blogs.telerik.com/aspnet-ajax/posts/13-11-05/add-excel-like-multi-select-filtering-to-your-asp.net-datagrid
    In addition, you can use a third party solution to achieve it, please take a look at:
    http://abilitics.com/Blog/index.php/sharepoint-improved-grids-with-excel-like-inline-editing/
    http://social.technet.microsoft.com/forums/sharepoint/en-US/3d19b9d3-d394-4af9-9e8e-2dee70b50540/filter-column-with-multiple-filter-values-in-sharepoint-list
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to create View Object with Multiple Updatable Entity Objects

    I want both the entities in the view object to support creating new rows but when i give create insert it allows to insert only on the parent and not the child. I found this link
    http://docs.oracle.com/cd/E21043_01/web.1111/b31974/bcadvvo.htm#CEGCAJCI which overrides the exiting classes. but i would like to do it declarative . Is there any other way to do it?
    I am using Jdeveloper 11g version 2.
    Thanks in advance,
    Rakesh

    But when i tried to add a new row it showed this error
    oracle.jbo.AttrValException: JBO-27014: Attribute LookupTypeId1 in FoundationModuleAM.VikLookupTypeBaseVO is required.
         at oracle.jbo.server.JboMandatoryAttributesValidator.validate(JboMandatoryAttributesValidator.java:224)
         at oracle.jbo.server.EntityDefImpl.validate(EntityDefImpl.java:3095)
         at oracle.jbo.server.EntityCache.validate(EntityCache.java:3599)
         at oracle.jbo.server.EntityImpl.validateEntity(EntityImpl.java:2285)
         at oracle.jbo.server.EntityImpl.validate(EntityImpl.java:2464)
         at oracle.jbo.server.DBTransactionImpl.validate(DBTransactionImpl.java:4515)
         at oracle.insurance.viking.foundation.model.common.VikingDBTransactionImpl.validate(VikingDBTransactionImpl.java:46)
         at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2008)
         at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
         at oracle.insurance.viking.foundation.model.common.VikingDBTransactionImpl.commit(VikingDBTransactionImpl.java:37)
         at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
         at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1415)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
         at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
         at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)
         at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:112)
         at oracle.jbo.uicli.controls.JUNavigationBar$NavButton.actionPerformed(JUNavigationBar.java:118)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
         at java.awt.Component.processMouseEvent(Component.java:6289)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6054)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4652)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4482)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
         at java.awt.EventQueue$2.run(EventQueue.java:617)
         at java.awt.EventQueue$2.run(EventQueue.java:615)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

  • How to Edit with Multiple People - HELP

    We used to be a small, 1-guy editing operation. But now we are huge (joke) and have 3 guys doing editing on an ongoing kids program. 
    I need some help with how to effectively edit the same program with 3 different people editing.
    I assume that it's impossible for all 3 editors to edit the same project file simultaneously, right?  That would be ideal as long as each person is working on a different scene, but even then, I'm sure it would introduce all kinds of problems.
    So I'm left pondering the best way to edit one large program (1-hour in final length) between multiple people.  The best method I've come up with to this point is to split my project up into 5 individual PP projects broken down by general scene categories. 
    That way each person can work on the "same" project/episode, but yet be working off of separate files, thus avoiding syncing problems. 
    But this only seems like a bandaide to our situation, especially if we bring on a couple more editors in the future.
    Any suggestions on working on the same project/episode at the same time between multiple people?

    There was a recent thread on similar issues.  I don't have this situation (one man shop), but one aspect of the "import sequences" to a master gets my attention.  I was starting to do this for my own projects (e.g. a season's worth of ball games where you want to do individual gamnes as well as a highlight of the season).  One project for it all gets rather complicated, and it seemed simple to import key sequences into another project.  But...
    A) This is not a dynamic link, but an import.  The whole project (or whole sequence(s) your choice) come in, inside a new bin.  changes in the other sequence are not updated in the master, so you need to be finished in the imported sequence - or be prepared to import again and redo any transition work.
    B) When you import, even though all the clips are from a shared pool, Premiere creates new instances in the imported bin.  Even if you offline and relink (so you don't literally need multiple clips on disk), they are still multiple instances in the bins.  As long as you don't plan on using work on clips in other sequences/projects, it really won't matter.  But, for example, if editor A adds markers to Clip 1 in their project, and you import their project to the master project, Clip 1 in editor B's project imported to the master will not hve the marker set by editor A,
    All logical really, but it limits this as a workaround to making Premiere work as a shared editor.

  • How to deal with multiple hard drives?

    I am using Aperture 1.5 but am having trouble
    dealing with the Library structure. I want to be able to have Aperture recognize and work with Projects located on several different external hard drives. Where should the main library be located? In 1.5 is there such a thing anymore as a Branch library? I had a branch library on an external drive. I may have messed things up so that Aperture doesn't quite know where things are. Is there a way to re-organize things so that when I open Aperture ALL the projects I've worked with do appear? Thanks.

    To have Aperture work with projects on different hard drives, just import the project files but tell Aperture to copy the files from their current location (say a media card or CD) to a directory of your choice on any drive of your choice. You can store projects on multiple drives. I don't think it matters where the main library is located, it could be on your primary drive, or on one of your external hard drives. I'm not sure how to consolidate projects that were enclosed in different libraries other than to export the projects individually, and then reimport them into the new centralized library. I do wish Aperture would allow one multiple select projects (it only allows you to select one at a time) for exporting. I also wish that Aperture had a 'Consolidate Libraries' command which would allow one to just pull all 'found' projects into one library.
    Dual 2.7 GHz 5.5 Gig RAM   Mac OS X (10.4.6)  

  • Record Store Merger with partial Update

    Hi,
    I have a requirement in which I have to merge a feed into the endeca via partial update. The feed will only have 3 properties- part number , vendor name , Store id(value to be merged). The combination of part number and vendor name is not unique.
    The only to achieve the sdesired result is by merging the feed's store detail in the data base. And by incremental indexing pushing the data into endeca. Somebody told me that CAS will then provide me the difference data and with that difference data I can partially update the records.
    But my client doesn't want to use Simple indexing. She is asking to figure out merging data in CAS itself. I know that we can use Record Store Merger to merge two or more data source.
    But if I use record Store merger will it provide me same differencial data input as provided by CAS in the case of indexing??
    Also I am using Endeca version 6.4.0.

    apparently these is a known bug in Endeca which occurs when an update results in a product not falling in 1 of the dimensionvalues. So if the price changes from 100 to 1mln and the price range only goes to 1000, endeca does not update correctly

  • How to work with multiple catalyst components in Flash Builder?

    Hey There,
    Can I create multiple components and merge them together? For example, I want to create a list control state, and bring it into my existing Flash Builder project. Then down the road, do something similiar... How would I go about that, and what files are essential fromt he catalyst project.. (assets, components, main.css, privateData..
    Thanks in advance!

    Yes, you can :-)
    You can export the components from different Flash Catalyst projects as fxpl files and then import them into Flash Builder. In Flash Catalyst, right-click in the Library panel and you will see the export command to save the current project's components into an fxpl file.
    A great article on Flash Builder/Flash Catalyst workflows is here:
    http://www.adobe.com/devnet/flashcatalyst/articles/flashbuilder_flashcatalyst_workflows.ht ml
    Ty

  • How to work with multiple users accessing one database

    I am a newbie in oracle.
    I want to give access to my oracle database for more users.
    I created oracle connection with c# project. The application allow to user to insert data to a database table. Now I want to give access to the different users with a login. Is there any way to give access other users to the same database using their username and passwords?
    I'm confused. Please help.
    thank you.

    In the database, set up your data schema with data tables, views, and stored procedures to support your application.
    That schema owner should only be a trusted data administration person.  Let's call that schema APP_DATA.
    Then you set up another schema called APP_DATA_USERS with no privileges and no data.
    Then you create an Oracle ROLE object called APP_DATA_ROLE.
    You grant the app_data_role to the app_data_user account.
    You then grant object permissions in the APP_DATA_ROLE that you want the app_data_user to have for the app_data data objects, like Create SESSION, SELECT on TABLE X. or SELECT, INSERT, UPDATE on TABLE Y.
    Now the APP_DATA_USERS only has specific permissions needed on specific app_data data objects that you control by the app_data_role.
    Then your application only opens connections to Oracle via the single APP_DATA_USERS account
    which is constrained by the APP_DATA_ROLE permissions on what can be done in the data schema APP_DATA.
    in your web or app config you create the connection information for the single app_data_user account.
    Putting the database aside, you now create the application layer with login controls so many users can use the application.
    But when they need data, the application only makes a connection to the single APP_DATA_USERS account
    Oracle ODP.NET auto handles the multiple session connections by the multiple application users to the single APP_DATA_USERS account.
    In summary the multiuser access is controlled by the application
    all making connections (sessions) with a single, limited privilege app_data_user account on the database side.

  • How to deal with multiple mail files?

    Here's the story; it's sad but true: After a failed iSync spirited away all of my emails, the Apple Care techie I spoke to a month ago wasn't able to fully resolve the problem. So, currently in my Home Library folder I have 2 Mail files: #1 is labeled "Mail" and #2 is "Mail Copy."
    "Mail" has one sub-folder called "Mailboxes" and four other folders for each of my four POP email accounts (there are also a number of other files that I'm ignoring for the moment like--Envelope Index, Signatures.plist, ect.). All mail from the past 4 weeks is in the folder labeled "Mail." But...
    The other folder in my home library--"Mail Copy"--contains 3 POP email accounts and each one has sub-folders that contain mailboxes with my emails that go back many months. I want to keep the email in both folders, "Mail" and "Mail Copy."
    Problem: How to get the older messages out of "Mail Copy" and back into the current "Mail" folder. Clearly, it would be a mistake to simple drag them from one location to the other, since the "Contents" files and ".plist" files wouldn't match.
    I would be extremely grateful for any guidance the Mail authorities who contribute to this forum might be able to give.
    Also, for the life of me, I cannot figure out where the emails actually reside. The "Mail" folder contains a subfolder entitled "Mailboxes" and it contains subfolders for each mailbox like "Action.mbox" and "Hold.mbox." Then, inside each .mbox folder are other files and usually one folder. Most of these files have names like "content_index," "Info.plist," "mbox," and "tableofcontents." And there is a folder labeled "Messages" and it contains numerous ".emix" files and one "tableofcontents file." My confusion begins when I open a particular POP account folder and find .mbox folders also located there and those folders also contain .emix files. I've searched the entire knowledge base, and I find no explanation anywhere of which files/folders are located where and why.
    Many thanks for your time and trouble, Jay

    The easiest way to combine the old folders with the new is to use the "Import" option in Mail's File menu. Consult the Mail Help topic "Importing email into Mail" for comprehensive instructions for doing that. In your case, the "archived" messages will be the ones in "Mail Copy."
    The actual messages are stored in individual *.emlx files, inside each mailbox folder's "Messages" folder. (For instance, you would find a message in a locally stored, root level mailbox "Action" at path ~/Library/Mail/Mailboxes/Action.mbox/Messages/xxx.emlx, where "xxx" is a number.)
    Some of the files you mention are leftovers from Mail 1.x & are not needed with Mail 2.x. They won't do any harm if left in place, but you can remove them if you wish. (I suggest making a backup of the entire ~/Library/Mail/ folder beforehand, in case something you need accidentally gets deleted.)
    These files are not needed by Mail 2.x: "content_index," all "tableofcontents" files, & files named "mbox." All folders with names ending in ".mbox" are needed, since they contain the .emlx files. You may also find folders in ~/Library/Mail/Mailboxes/ with no ".mbox" extension pared with folders of the same name with the ".mbox" extension (like "Hold" & "Hold".mbox") -- do not delete any of these, as they contain "Messages" folders as well.

  • How to deal with multiple Android ressolutions with Flash- AIR games

    Hi,
    I have some Flash games that want to make run on different Android devices. How do we do so? I've seen that in one of my games, while I check "full screen" when exporting, the game area is not taking all the available space on the screen. I guess that's because the aspect ratio.
    I've seen this nice tutorial to solve that problem on Flex apps/games: http://gregsramblings.com/2010/05/06/scaling-an-adobe-air-application-to-fit-multiple-reso lutions-and-netbooks/
    Is there any similar solution for flash based games?
    Thanks!

    That article looks like it's geared towards desktop applications, and it makes sure the window never gets bigger than the original size.
    You will read, any minute now, that a lot of people set the stage to not scale, and then use layout code to position the interface to look right, and will even take note of the DPI of the device to make sure that buttons are the right physical size. That's fine for typical utility apps, but if you have a detailed illustrated background, or any sort of fixed bitmap art, it may not be the right way to solve the problem.
    The way I solve the problem is to not do any scaling at all, I leave that up to Flash, but I have spare content off the edges of the stage, that will be revealed on wider or taller screens.
    The first time I used that approach I made the Flash stage be 480x320, and had extra content above and below the stage, to a total height of 360. That single file would exactly fit the iPhone screen and also the different aspect ratio iPad. On the iPad you would see the extra content.
    That works fine if you layout for the widest device, and a have extra content for the less wide devices, but there is only one device less wide than the iPhone, the iPad. So now I have switched the technique to horizontal.
    My stage is now 1024x768, and there is a lot of extra content off the left and right edges. I have enough there that it will still fill the screen on the widest device, which is the new Samsung Galaxy Nexus.

Maybe you are looking for