0

Below is a table im working with. I would like to take the field from [Field1] column and move directly across to [Field2] column.

Results would be like this

Field2

Browser
com.android.browser
com.android.browser.BrowserActivity

Email
com.android.email
com.android.email.activity.Welcome

Phone
com.android.contacts
com.android.contacts.activities.PCUDialtactsActivity

Gallery
com.android.gallery3d
com.android.gallery3d.app.Gallery

Tắt màn hình
com.katecca.screenofflockdonate
com.katecca.screenofflockdonate.MainHelper

Messaging
com.android.mms
com.android.mms.ui.ConversationList

Simple mode
com.pantech.app.skysettings.simplemode
com.pantech.app.skysettings.simplemode.simplemodesettingshrotcutActivity

enter image description here

4

1 回答 1

0

这可能会满足您的需要:

SELECT iif(isnull(Field2), Field1, Field2) as [yourColumnTitle] 
FROM yourTableName

除此之外,您需要在表中添加一列 datatype=YesNo 并在您想要影响的行上将其设置为 true,然后您可以

SELECT iif(NewColumn <> 0, Field1, Field2) as [yourColumnTitle]
FROM yourTableName
于 2013-10-18T02:11:05.393 回答